IIS 浏览器缓存不起作用

发布于 2024-08-24 10:56:36 字数 270 浏览 5 评论 0原文

我已在 IIS 6 中为所有静态图像和 CSS 启用缓存(通过右键单击 IIS 中的这些文件夹并在 HTTP 标头下启用 30 天后内容过期)。

当我运行 Google PageSpeed 并查看资源选项卡时,这些图像和 CSS 的状态显示为 200,但我期待的是 304(未修改)。当我在 Pagespeed 中检查 Yahoo.com 时,它的所有图像都有 304 状态。那么我的缓存不起作用?或者这就是 IIS 内容过期的工作原理。

任何帮助将不胜感激。

I have enabled caching in IIS 6 for all our static images and CSS(by right clicking on those folders in IIS and enabled Content Expiration after 30 days under HTTP Headers).

When I run Google PageSpeed, and look at the resources tab, the status of those images and css shows up as 200, but I was expecting a 304(not modified). When I checked Yahoo.com in Pagespeed, all its images have a 304 status. So my caching is not working? or is this how IIS content expiration works.

Any help would be appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文