google-chrome - Chrome devtools 显示 h2 而不是 quic/h3(即使页面使用的是 HTTP/3.0)
问题描述
作为一名开发人员,我对 HTTP/3.0 的下一个版本感到非常兴奋。前段时间我注意到,当我打开 Google.com 时,我可以在 Devtools > Network 中看到该协议显示为 Quic。但是现在当我打开它时,我只看到 h2 。这是为什么?
我还注意到 alt-svc 标头表明该资源也可以快速使用。但它仍在通过 h2 加载。
alt-svc: quic=":443";
我在使用 curl 时注意到同样的事情,使用的协议是 h2 而不是 h3。但谷歌多年来一直在使用 Quic。为什么会发生这种变化?
curl -v https://www.google.com/
* ALPN, offering h2
* ALPN, offering http/1.1
* ALPN, server accepted to use h2
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
> GET / HTTP/2
> Host: www.google.com
> User-Agent: curl/7.61.1
> Accept: */*
解决方案
推荐阅读
- python - 从汤查找结果中提取href链接的问题
- wpf - 在“System.Windows.Controls.Grid”类型上找不到模板属性“Foreground”
- sql - 如何检索Oracle中长度不同的文本列的最后一部分(即长度不同的数字)并将其存储在另一列中?
- sql - Oracle 解释计划中的成本后缀
- javascript - datepicker 开始和结束日期验证不适用于更改
- git - Git checkout 将文件传输到另一个分支
- reactjs - NextJS Button 通过 React 的 useState 不断单击自身
- laravel - Laravel:为列的值设置别名
- javascript - Javascript代码在Firefox浏览器中不起作用
- unreal-engine4 - 在虚幻引擎上具有同步延迟的游戏 CPU 和 GPU