2008年07月18日
针对页面,通过设置过期时间 <meta http-equiv="expires" content="Thu,31 Dec 2020 23:59:59 GMT">,使页面仅在浏览器刷新时才从服务器读取。

 针对图片,每次从服务器上取的是背景图片,在网上查询到,有人讲这是IE6的bug,背景图片不读缓存,都是从服务器取。有人给出了解决办法:jsp中加入以下代码得以解决:
<script type="text/javascript">    
         try {     
                  document.execCommand("BackgroundImageCache", false, true);     
               } catch(err) {
               }    
</script>

同事 塔长城 提供,并验证

2008年07月11日

在我们使用 jdk 的 LinkedHashMap 时,发生了

protected boolean removeEldestEntry(java.util.Map.Entry eldest) {
        
            System.out.println(this.containsKey(eldest.getKey())); //此处返回false

             if (size() > maxSize){
                          return true;
             }
            
 }

不能移除多于的缓存实例的问题,

百般调试无效,改用 org.apache.commons.collections.map.LRUMap 后问题解决.