“小心:临时标题显示为”在Chrome调试器中 [英] "CAUTION: provisional headers are shown" in Chrome debugger
问题描述
注意临时标题显示为
我发现了一些可能相关的内容,网络面板:增加临时请求标题的注意事项,但我无法完全理解它。相关的问题可以在 Chrome块请求以及 XMLHttpRequest无法加载。卸载资源显示警告:显示临时标题。
与第一个问题类似,我的资源被阻止,但后来自动加载了相同的资源。与第二个问题不同,我不想解决任何问题;我想知道这个消息的含义以及为什么我收到了它。
资源可能被一个扩展阻塞(AdBlock在我的情况下)。
消息在那里,因为检索资源的请求从未产生,所以显示的头文件不是真实的东西。正如您引用的问题中所解释的那样,服务器响应时会更新真正的标头,但如果请求被阻止,则没有响应。
$ b我发现有关阻止我的资源的扩展的方式是通过Chrome中的net-internals工具: b
$ b
chrome:// net-internals
,然后按回车。
I noticed a strange caution message when looking at downloaded resources using Google chrome inspector (F12):
Caution provisional headers are shown
I found something possibly relevant, Network Panel: add caution about provisional request headers, but I could not fully understand it. Related questions can be found Chrome block requests as well as XMLHttpRequest cannot load. Unloaded resources show caution: Provisional headers are shown.
Similar to the first question, my resource was blocked, but later automatically loaded the same resource. Unlike the second question, I don't want to fix anything; I want to know what this message means and why I received it.
The resource could be being blocked by an extension (AdBlock in my case).
The message is there because the request to retrieve that resource was never made, so the headers being shown are not the real thing. As explained in the issue you referenced, the real headers are updated when the server responds, but there is no response if the request was blocked.
The way I found about the extension that was blocking my resource was through the net-internals tool in Chrome:
- Type
chrome://net-internals
in the address bar and hit enter. - Open the page that is showing problems.
- Go back to net-internals, click on events (###) and use the textfield to find the event related to your resource (use parts of the URL).
- Finally, click on the event and see if the info shown tells you something.
这篇关于“小心:临时标题显示为”在Chrome调试器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!