Commit 31002caa887e8d448502ce1dc9de869a80f8c998
1 parent
891bd6bd
Exists in
master
and in
29 other branches
Do not trow away existing headers listed in Vary:
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
etc/noosfero/varnish-accept-language.vcl
... | ... | @@ -185,5 +185,9 @@ sub vcl_recv { |
185 | 185 | } |
186 | 186 | |
187 | 187 | sub vcl_fetch { |
188 | - set beresp.http.Vary = "X-Varnish-Accept-Language"; | |
188 | + if (beresp.http.Vary) { | |
189 | + set beresp.http.Vary = beresp.http.Vary ", X-Varnish-Accept-Language"; | |
190 | + } else { | |
191 | + set beresp.http.Vary = "X-Varnish-Accept-Language"; | |
192 | + } | |
189 | 193 | } | ... | ... |