varnish caches too many object variances

Taylan Develioglu tdevelioglu at ebuddy.com
Tue Sep 28 21:11:17 CEST 2010


Compressed objects are cached according to Vary: Accept-encoding headers. Like I said the backend does not add these headers (nor does compression).

-----Original Message-----
From: Jim Hayter [mailto:jhayter at manta.com] 
Sent: Tuesday, September 28, 2010 9:06 PM
To: Taylan Develioglu; varnish-misc at varnish-cache.org
Subject: RE: varnish caches too many object variances


I had to look into this recently myself.  Take a look at the
documentation on how gzip/deflate are handled.  For one object varnish
can potentially have multiple objects: gzipped, deflated and
uncompressed.

Jim

-----Original Message-----
From: varnish-misc-bounces at varnish-cache.org
[mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Taylan
Develioglu
Sent: Tuesday, September 28, 2010 1:22 PM
To: varnish-misc at varnish-cache.org
Subject: varnish caches too many object variances

Hi,

I have some varnish 2.1.3 behavior I cannot explain.

Our backend servers are not adding any 'Vary:' header to responses, but
objects > object_heads by a great difference. 

The ratio objects:object_heads is ~ 2:1.

The vcl is clean and simple:

 sub vcl_recv {
     unset req.http.cookie;

     if (req.request == "HEAD") {
         return(pass);
     }
 }

Is there anything besides 'Vary' that makes varnish cache multiple
objects ? What else could be causing this ?


_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc




More information about the varnish-misc mailing list