【问题标题】:IE8 loads images and css from server and does not save them in cache, how to force IE takes images from the cache?IE8从服务器加载图像和css并且不保存在缓存中,如何强制IE从缓存中获取图像?
【发布时间】:2011-05-16 07:40:57
【问题描述】:

我创建了网站,JSP,在 Tomcat 上运行。

IE8 不会从缓存中加载图像,尽管我尝试过并且它是从 mozilla 中的缓存中加载的。 我的 IE8 没有禁用缓存。

Mozilla 的 Tomcat 日志产生 304 状态码: “GET /petelina/images/main/logo.png HTTP/1.1” 304 -

IE8 的 Tomcat 日志始终为 200: 超级 [26/Nov/2010:20:10:07 +0200] "GET /petelina/images/main/bg_left_column.gif HTTP/1.1" 200 1394

res.setDateHeader("过期", System.currentTimeMillis() + 604800000L); - 没有帮助,如果我将它设置在静态内容的过滤器中。

如何强制 IE8 使用缓存?????!!!!

【问题讨论】:

    标签: html internet-explorer http caching mozilla


    【解决方案1】:

    首先使用http://validator.w3.org检查您的页面

    IE8 默认使用哪种文档模式?看起来可能会导致非缓存问题的怪癖。

    【讨论】:

      猜你喜欢
      • 2017-02-27
      • 1970-01-01
      • 2013-01-09
      • 2020-05-25
      • 2018-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多