是通过http / 1或http / 2收到的资源 [英] was resource received via http/1 or http/2

查看:128
本文介绍了是通过http / 1或http / 2收到的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何区分资源是通过h​​ttp / 1还是http / 2提供的? BE人员在他们身边实施了它。而我在开发工具网络选项卡中可以看到,并行加载了大量图像(80个项目)。但是当我看到XHR标签时,它们似乎被较小的部分加载。比如等待前6,而不是去另一个。而且似乎在迁移到http / 2之前它是一样的。我看不到任何标题指示使用了哪个版本的协议

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

推荐答案

您可以使用网络标签在Chrome中查看开发人员工具,位于协议列中。如果它不存在,请右键单击其中一个标题(例如状态),然后选择协议。

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'.

在Firefox中,相同的'开发人员'/'网络'面板,当您选择其中一个查询时,除了URL和状态代码外,它还会显示以下版本:

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

这篇关于是通过http / 1或http / 2收到的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆