chrome
输入about:flags,搜索框输入quic,会揾到呢条显示出来
Experimental QUIC protocol
……
#enable-quic
enabled佢。
firefox
输入about:config,搜索框输入http3,会揾到呢条显示出来
network.http.http3.enabled
双击佢,由false改成true就得。
以上改完后都要重启浏览器先会生效。
如果网站支持http/3,会系响应头返回增加alt-svc告诉客户端,例如
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
客户端支持的话就用http3来连接。
firefox按F12睇网络,选中连接就可以睇到用咩http版本连接了。