httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46346] New: mod_cache logic misses some RFC valid cases
Date Fri, 05 Dec 2008 08:31:15 GMT

           Summary: mod_cache logic misses some RFC valid cases
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cache

Created an attachment (id=22996)
 --> (
caches any request that has an expires or cache control header

RFC2616 section 13.4 states that certain response status codes should not be
cached, unless they contain a valid Expires or Cache Control header. mod_cache
does not handle this correctly, keeping some requests from being cached.

For example,,
returns the headers:

HTTP/1.1 302 Found
Expires: Fri, 05 Dec 2009 08:25:05 GMT
Content-Length: 323
Date: Fri, 05 Dec 2008 08:25:06 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Type: text/html; charset=iso-8859-1
Keep-Alive: timeout=20, max=930
X-Cache-Info: cached
Connection: Keep-Alive

While a 302 would normally not be cached, since this request has an Expires
header it should be. This patch adds logic to cache any response status code,
if it has an Expires or Cache Control header.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message