Why is my site not using http/2 while it is http/2

2019-08-20 04:45发布

I have a NGINX reverse proxy in front of a website. The NGINX server is http2/ready. If I run a test, all seems good:

enter image description here

However, when I go to the website using a browser, chrome indicates the website is using http/1.1.

enter image description here I can't figure out why. Can anyone help?

1条回答
2楼-- · 2019-08-20 05:29

I found out why. I enabled the TLS 1.3 protocol on NGINX. Chrome 70 on Win10 handshaked to TLS 1.3 without http/2. As soon as I disabled TLS 1.3 the browser handshaked to TLS1.2 + https/2. The question, of course, is what is faster. I opted for the TLS1.2 + https/2 scenario.

查看更多
登录 后发表回答