IIS 浏览器缓存不起作用
我已在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论