Fiddler 显示缓存命中?

发布于 2024-11-04 18:51:11 字数 428 浏览 0 评论 0原文

我只是想检查我网站的 HTTP 缓存是否正常工作,特别是自从我迁移到 CDN 后。

现在我同时使用了 Fiddler 和 Firebug,我看到的是每次导航到页面时都会请求页面上的所有脚本和图像。响应代码是 200。

如果我在 Chrome 中打开页面,开发人员工具还会向我显示所有这些请求,但 Chrome 还告诉我这些请求是从缓存提供的。 Fiddler 中未列出 Chrome 请求(而 FF 和 IE 请求则列出)。

我最初的假设是,如果 Firefox 或 Internet Explorer 从其缓存中获取文件,则该请求根本不会显示在 Fiddler 中。

我检查了我的缓存标头,由于 Chrome 的行为完全符合我的预期,我问自己我对 Fiddler 的假设是否错误。当 Fiddler 启动时,FF/IE 的行为是否有所不同? Fiddler 是否显示缓存命中?

I just wanted to check if my HTTP caching for my website is working especially since I moved to a CDN.

Now I used both Fiddler and Firebug and what I am seeing is that requests for ALL scripts and images on my page every time I navigate to it. Response code is 200.

If I open the page in Chrome, the developer tools also show me all these requests but Chrome also tells me that the requests are served from the Cache. Chrome requests are not listed in Fiddler (while FF and IE requests are).

My original assumption was that if Firefox or Internet Explorer get a file from their cache that request wouldn't show up at all in Fiddler.

I checked my caching headers and since Chrome behaved exactly like I expected I am asking myself if my assumption about Fiddler was wrong. Are FF/IE behaving differently when Fiddler is started? Is Fiddler showing cache hits?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福不弃 2024-11-11 18:51:11

作为网络代理,Fiddler 无法显示来自缓存的任何内容。如果您在 Fiddler 中看到请求,则该请求是通过网络发送的。

需要记住的一件事是,如果您刷新页面(例如使用按钮或 F5),则可以绕过缓存;请参阅 http://blogs.msdn.com/b/ieinternals/archive/2010/07/08/technical-information-about-conditional-http-requests-and-the-refresh-button.aspx< /a>

As a network proxy, Fiddler is not able to show anything that comes out of the cache. If you see a request in Fiddler, then that request was sent over the wire.

One thing to keep in mind is that if you're refreshing the page (e.g. with the button or F5) then the cache can be bypassed; see http://blogs.msdn.com/b/ieinternals/archive/2010/07/08/technical-information-about-conditional-http-requests-and-the-refresh-button.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文