<div dir="ltr">Hi,<br><br>Thanks for checking.<br><br>To be honest I'm a bit surprised ticket 1220 has been outstanding for so long. I've tried reproducing this in 3.0.[345] without success.<br>Have you checked whether this is fixed in V4?<br>
<br>btw, if http_gzip_support is enabled you need the Vary header regardless of where compression takes place since Varnish will uncompress the content on the fly if the client doesn't support gzip.<br><br>Cheers.<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 9:41 PM, Daniel Parthey <span dir="ltr"><<a href="mailto:pada@posteo.de" target="_blank">pada@posteo.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 22.08.2014 13:45, schrieb Federico Schwindt:<br>
<div class="">> Hi,<br>
><br>
> I've been pondering on this for a while and I finally convinced myself that<br>
> Varnish is doing it wrong. If http_gzip_support is enabled and the object<br>
> is gzip'd we must add a Vary on Accept-Encoding on delivery to keep<br>
> intermediary caches happy.<br>
><br>
<br>
</div>Hi Federico,<br>
<br>
sounds reasonable. Our web applications have been adding the Vary:<br>
accept-encoding<br>
for years now, probably for the same reason (to make varnish and other<br>
caches happy),<br>
but for us the webserver still does the compression, because of issues like<br>
<a href="https://www.varnish-cache.org/trac/ticket/1220" target="_blank">https://www.varnish-cache.org/trac/ticket/1220</a> which still seem to be<br>
present in<br>
Varnish 3.0.4.<br>
<br>
If webserver did not compress the content and Varnish adds the gzip layer, a<br>
Vary: accept-encoding is surely necessary in order to prevent a mix of<br>
compressed<br>
and non-compressed content in intermediary caches which are located<br>
between varnish and client.<br>
<br>
Kind regards<br>
<span class="HOEnZb"><font color="#888888">Daniel<br>
<br>
--<br>
<a href="https://emailselfdefense.fsf.org" target="_blank">https://emailselfdefense.fsf.org</a><br>
<a href="https://pgp.mit.edu/pks/lookup?op=get&search=0xB4DD34660B6F0F1B" target="_blank">https://pgp.mit.edu/pks/lookup?op=get&search=0xB4DD34660B6F0F1B</a><br>
<br>
<br>
</font></span><br>_______________________________________________<br>
varnish-dev mailing list<br>
<a href="mailto:varnish-dev@varnish-cache.org">varnish-dev@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev</a><br></blockquote></div><br></div>