Bug 60992 - [PATCH] Cache 308 and 410 responses even without Cache-Control/Expires headers
Summary: [PATCH] Cache 308 and 410 responses even without Cache-Control/Expires headers
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cache (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 normal with 1 vote (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2017-04-14 17:37 UTC by Daniel
Modified: 2017-04-23 07:57 UTC (History)
0 users



Attachments
Patch (1.49 KB, patch)
2017-04-14 17:37 UTC, Daniel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2017-04-14 17:37:13 UTC
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.