Jeff Anderson skrev: > It looks like if the first requested page is for an uncompressed page > varnish will only deliver the uncompressed page from cache even if a > compressed page is requested.
As long as you don't Vary: on the Accept-Encoding I guess that is
expected. Varnish doesn't not understand the Accept-Encoding header.
> (..)
> What could be causing this? The only way to fix appears to be to add
> the lines below:
>
> sub vcl_hash {
> if (req.http.Accept-Encoding ~ "gzip" || req.http.Accept-Encoding ~
> "deflate") {
> set req.hash += req.http.Accept-Encoding;
> }
Either use the fix you suggested or add a Vary: Accept-Encoding on the
backend.
--
Per Buer - Leder Infrastruktur og Drift - Redpill Linpro
Telefon: 21 54 41 21 - Mobil: 958 39 117
http://linpro.no/ | http://redpill.se/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-misc mailing list [email protected] http://projects.linpro.no/mailman/listinfo/varnish-misc
