was resource received via http/1 or http/2

◇◆丶佛笑我妖孽 提交于 2019-12-13 17:22:07

问题


How can I distinguish whether resource was served via http/1 or http/2? The BE guys implemented it on their side. and what I can see in dev tools network tab that a lot of images (80 items) is loaded in parallel. But when I look at XHR tab they seem to be loaded by smaller portions. like wait for first 6, than go for another. And it seems that before migration to http/2 it was the same. I cant see any headers indicatin which version of protocol was used


回答1:


You can view that in Chrome using the 'Network' tab in 'Developer Tools', in the 'Protocol' column. If it isn't present, right click on one of the headers ('Status' for example), and select 'Protocol'.

In Firefox, in the same 'Developer'/'Network' panel, when you select one of the queries, in addition to the URL and status code, it displays the version:

Finally, each of these two browsers has a handy status indicator extension:

  • Firefox: https://addons.mozilla.org/en-us/firefox/addon/spdy-indicator/
  • Chrome: https://chrome.google.com/webstore/detail/http2-and-spdy-indicator/mpbpobfflnpcgagjijhmgnchggcjblin?hl=en


来源:https://stackoverflow.com/questions/40936625/was-resource-received-via-http-1-or-http-2

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