Unable to figure out why firebase hosting is not using http 2

余生长醉 提交于 2019-12-13 15:32:47

问题


I've set up a fresh hosting project (not using any custom domain at the moment) and split up some of my js files expecting them to be served via http2 (as described in firebase blog posts it should be enabled by default?) However protocol still shows up as http/1.1. Am I missing something? Do I need to add entry in my config files to force http2?

DEMO: https://asimetriq-com.firebaseapp.com/


回答1:


Works for me, see attached screenshot.

It may mean that you have some transparent proxy that does not support HTTP/2 in the network hops from your client to the server.

Also, from time to time, browsers may downgrade the protocol they are using to collect statistics about protocol performances to be able to compare them.



来源:https://stackoverflow.com/questions/48066930/unable-to-figure-out-why-firebase-hosting-is-not-using-http-2

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