If you have a Vary header like this (or something like this):<br>Vary: Accept-Encoding<br><br>And your request has a header like this:<br>Accept-Encoding: gzip<br><br>What will happen is that varnish won't find in the cache the resource you are looking for with this encoding, so it will go to the backend and ask for it.<br>
<br>I believe you can play with vcl and change this behavior. Although you should be careful.<br><br>Jonathan<br><br><div class="gmail_quote">On Sat, Dec 4, 2010 at 12:44 PM, FabD [ML] <span dir="ltr"><<a href="http://flylm.ml">flylm.ml</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
I've a question about a case :<br>
<br>
1) Imagine Varnish have a page in cache, but a page that is not compressed.<br>
2) If I call this page with a client that supports gzip encoding,<br>
varnish ask backend for a gzip encoded page or send the non-encoded<br>
page from cache ?<br>
<br>
Actually, i notice sometime I receive some "non-encoded" page, I would<br>
like to understant why.<br>
<br>
ps : Accept-encoding header is normalized.<br>
<br>
Thanks,<br>
Fabien<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br>