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

北城余情 提交于 2019-12-24 20:26:27

问题


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.



来源:https://stackoverflow.com/questions/56952781/why-is-my-site-not-using-http-2-while-it-is-http-2-enabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!