Bug 58181

Summary: mod_expire should allow "minus" keyword same like "plus"
Product: Apache httpd-2 Reporter: Björn Jacke <bjoern>
Component: mod_expiresAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 2.4.10   
Target Milestone: ---   
Hardware: All   
OS: Linux   

Description Björn Jacke 2015-07-25 16:25:41 UTC
i would like to give documents a higher freshness timeout when they haven't been modified for a long time. documents, that have a more recent modifications time should have a lower freshness timeout. So I would like to do something like:

ExpiresByType text/html "now minus modification"

The primary problem here is that mod_expire does only support "plus" and not "minus". There was a patch for minus here: https://paste.apache.org/aLzH but I didn't test that. Any reason why "minus" for a use case like this is not supported?