Firebug 以灰色显示一些请求
Firebug 显示一些请求为灰色(附有屏幕截图并标记为红色),状态代码为 200,而一些请求显示为黑色,状态代码为 200。两个请求之间有什么区别?
Firebug shows some requests in Gray(screenshot attached and marked in Red) with status code 200 and some requests shows black with status code 200. What is the difference between two requests?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
灰色请求是从缓存加载的请求,如此处的功能促销中所述:
http://getfirebug.com/network
编辑
至于您对 200 代码和 304 代码的担忧,他们还在其网站上上述引用旁边显示了此图像。
换句话说,看起来 200 仍然意味着它是从缓存加载的。我确实同意这有点奇怪。我正在尝试揭露更多细节。
编辑2
我假设服务器发送了 200 个代码,但浏览器选择忽略它们并运行缓存的内容(可能是假设它没有改变,或者可能是因为加载的新页面与旧页面位于同一目录中)一?)。
The gray requests are the ones loaded from the cache, as described in a feature-promo here:
http://getfirebug.com/network
Edit
As for your concern regarding 200-codes and 304 codes, they also display this image on their website next to the above quote.
In other words, it would seem as if 200 still means that it is loaded from the cache. I do agree that it's a bit strange. I'm trying to uncover more details.
Edit 2
I would assume that the server sends out 200-codes, but the browser chooses to ignore them and run the cached content anyway (perhaps by assuming it didn't change, or perhaps because the new page loaded is in the same directory as the old one?).
我引用的是 Jan Honza Odvarko,Firebug 首席开发人员,来自实际的 Firebug Google 群组:
I'm citing Jan Honza Odvarko, firebug lead developer, from the actual firebug google group: