Reputation: 71
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?
Upvotes: 7
Views: 5601
Reputation: 326
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
Upvotes: 7