Understanding the caching of Vary

Poul-Henning Kamp phk at phk.freebsd.dk
Mon May 23 08:57:37 CEST 2011


In message <BANLkTi=pDSL5StXRadNWAXRaPht6q8pyFQ at mail.gmail.com>, Simon Males writes:
>Hello,
>
>I've discovered mid migration to gzip (from no gzip) that assets where
>not being cached across different clients.
>
>Following the friendly Vary[1] tutorial I managed to resolve that.
>
>But does this only cache gzip requesting clients. e.g. If non gzip
>requesting client such as  curl made a request, that object would be
>cached separately?

No, curl should get the cached gziped copy, but varnish will gunzip
it during delivery.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.




More information about the varnish-misc mailing list