https://issues.apache.org/bugzilla/show_bug.cgi?id=52523
Bug #: 52523
Summary: Headers from mod_expires are wrongly set for redirects
too and can't be removed or changed
Product: Apache httpd-2
Version: 2.2.21
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: mod_expires
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
mod_expires should honor "onsuccess" for its headers added or use some "early"
equivalent. It gives wrong result for redirects otherwise.
F.e. there is a way to add or remove some headers just for redirect, like that:
Header always set Pragma no-cache env=redir
RewriteRule ^a\.html$ http://example.com/b.html [L,R=301,E=redir:1]
but combined with mod_expires such way not works. This example
<Files a.html>
ExpiresDefault "access plus 1 day"
</Files>
Header unset Cache-Control env=redir
Header unset Expires env=redir
Header always unset Cache-Control env=redir
Header always unset Expires env=redir
RewriteRule ^a\.html$ http://example.com/b.html [L,R=301,E=redir:1]
still have Cache-Control and Expires headers. Please fix this bug.
--
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]