Mantis - Resin
Viewing Issue Advanced Details
106 minor always 04-15-05 00:00 05-11-05 00:00
ferg  
 
urgent  
closed  
fixed  
none    
none 3.0.13  
0000106: if-modified-since with IE 6
RSN-97
(rep by Anupam Bagchi)

We recently tried to use gzip filter for our product using Resin 3.0.12 and found a problem with IE 6. We have tracked it down to the code and here is the diagnosis.

In Resin 3.0.12, com.caucho.servlets.FileServlet, line 0000257:

    String lastModified = cache.getLastModifiedString();

    if (ifMatch == null) {
      String ifModified = req.getHeader("If-Modified-Since");

      if (ifModified != null && ifModified.equals(lastModified)) {
        if (etag != null)
          res.addHeader("ETag", etag);
        res.sendError(res.SC_NOT_MODIFIED);
        return;
      }
    }

The problem with IE 6 is that is has "; length=xxx" at the end of the ifModified string and Resin needs to strip out this information before comparing it to lastModified.

Will appreciate if you can include this fix in the next Resin release.

Notes
(0000125)
ferg   
04-15-05 00:00   
server/1970