httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54518] mod_rewrite not adding Vary header
Date Mon, 04 Feb 2013 20:37:00 GMT

--- Comment #2 from Daniel Lescohier <> ---
I moved all my RewriteRules (and RewriteConds) out of Directory context, and
edited them for the server context, and it now works.

I see now that Directory context runs in a totally different phase of request
processing; the fixup phase instead of the uri2name phase, and that the fixup
phase processing does an ap_internal_redirect if you rewrite the url, and
therefore the request parsing phase is done over again in the subrequest, and
from what you said, response headers are reset for the subrequest.

I would guess that this would mean that in Directory context, not only setting
the Vary header from RewriteCond's %{HTTP:header} processing wouldn't work, but
probably also the cookie|CO flag and perhaps the type|T flag would not work.

I think it'd be a good idea to add documentation about this to:

 1. RewriteCond's %{HTTP:header} documentation.
 2. RewriteRule's "Per-directory Rewrites" documentation.
 3. RewriteRule's flags documentation for each flag that won't work in
Directory context.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message