/[Apache-SVN]
ViewVC logotype

Revision 1808746


Jump to revision: Previous Next
Author: elukey
Date: Mon Sep 18 17:08:54 2017 UTC (6 years, 7 months ago)
Changed paths: 3
Log Message:
mod_rewrite/core: avoid the 'Vary: Host' header

In PR 58231 is was brought up that httpd adds the
Vary: Host header whenever a condition is set to true
in mod_rewrite or in an <If> block.

The https://tools.ietf.org/html/rfc7231#section-7.1.4
section seems to disallow this use case:

"The "Vary" header field in a response describes "
"what parts of a request message, "
"aside from the method, Host header field, [...]"

I had a chat with the folks in #traffic-server and
they don't see much point in having a Vary: Host header,
plus it was reported that Varnish doesn't like it very
much (namely it does not cache the response when
it sees the header, links of the report in the PR).

I don't see much value in this behavior of httpd so
I am inclined to remove this response header value,
but I'd be glad to get a more experienced opinion.



Changed paths

Path Details
Directoryhttpd/httpd/trunk/CHANGES modified , text changed
Directoryhttpd/httpd/trunk/modules/mappers/mod_rewrite.c modified , text changed
Directoryhttpd/httpd/trunk/server/util_expr_eval.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26