On Thu, Aug 26, 2010 at 9:21 AM, Alessandro Ronchi <
[email protected]> wrote:

> In my project I have both gzip and plain version of CSS and JS files, based
> on user browser preferences. How can I make varnish cache both versions and
> give the user the correct version?
>

Varnish will cache both versions if your back end server sends a "Vary:
Content-Encoding" header. You probably want to normalize this header. See
http://varnish-cache.org/docs/trunk/tutorial/increasing_your_hitrate.html#vary
for
details on how to do that.

-- 
Per Buer,  Varnish Software
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / skype: per.buer
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc

Reply via email to