Understanding the caching of Vary

Simon Males sime at sime.net.au
Mon May 23 10:04:23 CEST 2011


>>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.

Not in this example.

Load the following page in Firefox (e.g.):

http://www.varnish-cache.org/themes/bluemarine/style.css

I get the X-Varnish identifier as 120088317

Hitting the same URL with curl I get : 120088247

I guess this example is invalid?

-- 
Simon Males




More information about the varnish-misc mailing list