You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/09/15 23:16:53 UTC
DO NOT REPLY [Bug 44518] Don't set expires header on HTTP redirect.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44518
--- Comment #2 from Jerome Renard <je...@gmail.com> 2009-09-15 14:16:50 PDT ---
Created an attachment (id=24271)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24271)
patch attempt for issue 4451
Good evening.
Please find attached a patch which implement this enhancement request.
A new configuration directive has been added : ExpiresIgnoreRedirect
I tested with the following configuration :
<Directory /Users/jerome/work/www/perso/apache/issues/44518/>
<IfModule mod_expires.c>
ExpiresActive On
# When set to Yes an Expires header will be sent
# even if a Location header is present
# Posible values : 'Yes' or 'No'
# Default value : No
ExpiresIgnoreRedirect Yes
ExpiresDefault "access plus 1 year"
# ExpiresByType text/html M604800
</IfModule>
</Directory>
Tested with ExpiresDefault and ExpiresByType and it seems to work fine.
The patch has been generated against SVN trunk.
Any comment/feedback welcome.
Best Regards.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org