When using mod_expires ExpiresDefault or ExpiresByType with modifcation as base it can happen that mod_expires adds a negative max-age to Cache-Control / an Expires header with a date in the past. This possibly violates RFC2616. How to reproduce: Add ExpiresDefault "modification plus 5 minutes" to your config and access a static file via the webserver with a last modification time of more then 5 minutes back from the request time. Possible solutions: 1. mod_expires does not set an Expires header nor a max-age in this case 2. mod_expires sets Expires to the request time and max-age to 0 to indicate that this response is not cachable. Personally I think the second proposal is the correct solution.
Created attachment 18444 [details] Patch against trunk Fixes the problem according to proposal 2: Setting max-age to 0 and Expires to now.
Committed to trunk as r708902.
Proposed for backport as r709915.
Backported to 2.2.x as r713142.