Summary: | [PATCH] Cache 308 and 410 responses even without Cache-Control/Expires headers | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Daniel <code> |
Component: | mod_cache | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | rivido2454 |
Priority: | P2 | Keywords: | PatchAvailable |
Version: | 2.5-HEAD | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Patch |
Created attachment 34915 [details] Patch Description of changes: The new behavior for 410 responses matches RFC2616 section 13.4 (already quoted in inline comments, but not implemented) and the new behavior for 308 responses matches RFC7538 section 3. Testing: A `HTTP/1.1 410 Gone` response without an `Expires` or `Cache-Control` header should be cached as set in the `CacheDefaultExpire` directive. A `HTTP/1.1 308 Permanent Redirect` response without an `Expires` or `Cache-Control` header should be cached as set in the `CacheDefaultExpire` directive.