Firebug在Grey中显示了一些请求 [英] Firebug shows some requests in Gray
问题描述
http://getfirebug.com/network
$ b
缓存或不缓存
不是所有的网络请求都是相同的,有些是从浏览器缓存而不是网络加载的。 Firebug为每个请求提供状态代码,这样您就可以快速扫描并查看您的网站使用缓存的效率,从而优化页面加载时间。
编辑
至于你关心的200代码和304代码,他们也显示在他们的网站上面的报价旁边的图像。
换句话说,似乎200仍然意味着它从缓存中加载。我同意这有点奇怪。我试图发现更多的细节。
编辑2
我假设服务器发出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?
The gray requests are the ones loaded from the cache, as described in a feature-promo here:
Cached or not cached
Not all network requests are equal - some of them are loaded from the browser cache instead of the network. Firebug provides status codes for every request so you can quickly scan and see how effectively your site is using the cache to optimize page load times.
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?).
这篇关于Firebug在Grey中显示了一些请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!