为什么我无法使用 http3/quic 访问 google?

发布于 2025-01-09 20:35:25 字数 230 浏览 5 评论 0原文

Chrome已经打开了enable-quic开关,但是当我访问google时,它仍然使用http2协议,如何使用浏览器的http3/quic功能?

启用-quic http2协议

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?

enable-quic
http2 protocol

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯然 2025-01-16 20:35:25

由于 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 协议

chrome --origin-to-force-quic-on=www.example.org:443

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

chrome --origin-to-force-quic-on=www.example.org:443
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文