httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46346] New: mod_cache logic misses some RFC valid cases
Date Fri, 05 Dec 2008 08:31:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46346

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: alex@polvi.net


Created an attachment (id=22996)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?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, http://en-us.fxfeeds.mozilla.com/en-US/firefox/headlines.xml,
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
Location: http://fxfeeds.mozilla.com/firefox/headlines.xml
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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message