为什么我无法使用 http3/quic 访问 google?
Chrome has turned on the enable-quic switch ,but when i But when I visit google, it still uses http2 protocol ,how can I use the browser's http3/quic feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 HTTP/3 仍然是一个相对较新的协议,浏览器在连接到服务器时可能会首先使用 HTTP/1 或 HTTP/2。服务器可能会为后续连接通告对 HTTP/3 的支持。然而,即使在多次请求之后,如果 QUIC 握手由于某种原因延迟,浏览器也可能最终使用 HTTP/2 和 TCP。
您可以在这里找到更多信息
https://www.smashingmagazine.com/2021/09/ http3-practical-deployment-options-part3/
您可以尝试通过从命令行启动 Chrome 来强制 Chrome 在特定域上使用 QUIC 协议
Since HTTP/3 is still a relatively new protocol, browser may first use HTTP/1 or HTTP/2 when connecting to a server. The server may advertise support of HTTP/3 for subsequent connections. However, even after several requests, the browser may end up using HTTP/2 and TCP if QUIC handshake is delayed for some reason.
You may find more information here
https://www.smashingmagazine.com/2021/09/http3-practical-deployment-options-part3/
You can try to force Chrome to use QUIC protocol on a specific domain by starting chrome from the command line