httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52523] New: Headers from mod_expires are wrongly set for redirects too and can't be removed or changed
Date Wed, 25 Jan 2012 14:50:34 GMT
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: bugs@httpd.apache.org
        ReportedBy: ache@vniz.net
    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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message