https://issues.apache.org/bugzilla/show_bug.cgi?id=46241
Summary: mod_expires - ExpiresByPattern or ExpiresIf
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_expires
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Hello,
an enhancement request for mod_expires would be much apprciated;
Suggestion 1: ExpiresByPattern
ExpiresByPattern \.(png|gif|jpg) A2592000
ExpiresByPattern ticker\.gif A-1
Where the last match wins/overwrites, so I can put general expires in main
config and then allow virtuals to specialise more specific patterns as they
wish
The ExpiresByType is just too big a brush for complex things.
Suggestion 2: ExpiresIf
Alternately, you might consider something like:
SetEnvIf Request_URI "\.jpg$" expiry=month
SetEnvIf Request_URI "\.gif$" expiry=year
SetEnvIf Request_URI "ticker\.gif$" !expiry
ExpiresIf %{ENV:expiry}=month A2592000
ExpiresIf %{ENV:expiry}=year "access plus 1 year"
etc.
Many thanks!
Jeff
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]