Created attachment 22996 [details] 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.
Fixed in trunk r724093
Proposed for backport as r724127.
Backported as r727599