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

2019-08-20 05:19发布

问题:

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:

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

I can't figure out why. Can anyone help?

回答1:

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.