httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58231] RewriteCond can add "Host" to the Vary-Header
Date Mon, 18 Sep 2017 08:00:28 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58231

--- Comment #7 from Luca Toscano <toscano.luca@gmail.com> ---
I found the following example as proof of issues originated from the Vary:
Host:

http://www.nivas.hr/blog/2017/02/13/apache-sending-vary-host-making-things-uncacheable-varnish/

I still haven't been able to get a response with Vary:Host using mod_rewrite
(although I can see from the code that it explicitly set if when it finds it in
a RewriteCond, so probably I am doing something wrong in my config) but I found
another way to get it:

  <If '%{HTTP_HOST} -eq "bla"'> [..] </If>

It makes sense since I can see a add_vary function in util_expr_eval.c. As far
as I understand the RFC explicitly prohibits the Vary: Host header, so it
should be prevented in out codebase. 

Any opinion?

-- 
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