-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/04/2011 06:14 PM, . wrote: > Thanks for your reply. I'm curious as to why you suggested I remove > the X-Varnish header? I guess my confusion is why the header doesn't > include 2 numbers, even though it is a cache HIT, and the HIT > counter is being incremented. >
Hello, It should be increased, are you testing with a simple file (without cookies and respecting the Cache-Control header) ? # first request $ curl -I -H "Host: www.flaviotorres.com.br" http://www.flaviotorres.com.br HTTP/1.1 200 OK Last-Modified: Fri, 01 Oct 2010 11:25:07 GMT X-Mod-Pagespeed: 0.9.1.1-171 Cache-Control: max-age=60 Expires: Wed, 12 Jan 2011 12:11:55 GMT Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 VID: 01 Content-Length: 3 Date: Wed, 12 Jan 2011 12:10:55 GMT X-Varnish: 1268025441 Connection: keep-alive X-Cache: MISS X-Cache-Hits: 0 X-Age: 0 # second request $ curl -I -H "Host: www.flaviotorres.com.br" http://www.flaviotorres.com.br HTTP/1.1 200 OK Last-Modified: Fri, 01 Oct 2010 11:25:07 GMT X-Mod-Pagespeed: 0.9.1.1-171 Cache-Control: max-age=60 Expires: Wed, 12 Jan 2011 12:11:55 GMT Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 VID: 01 Content-Length: 3 Date: Wed, 12 Jan 2011 12:10:59 GMT X-Varnish: 1268025442 1268025441 Connection: keep-alive X-Cache: HIT X-Cache-Hits: 1 X-Age: 4 # third request $ curl -I -H "Host: www.flaviotorres.com.br" http://www.flaviotorres.com.br HTTP/1.1 200 OK Last-Modified: Fri, 01 Oct 2010 11:25:07 GMT X-Mod-Pagespeed: 0.9.1.1-171 Cache-Control: max-age=60 Expires: Wed, 12 Jan 2011 12:11:55 GMT Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 VID: 01 Content-Length: 3 Date: Wed, 12 Jan 2011 12:11:02 GMT X-Varnish: 1268025443 1268025441 Connection: keep-alive X-Cache: HIT X-Cache-Hits: 2 X-Age: 7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0tuuAACgkQNRQApncg297klgCfQuU9I2w/BfBIvFhddz6P9MIe NF4AoK5BA/ovvvsUnxcFA0ZCNLWD3CH5 =hyIE -----END PGP SIGNATURE----- _______________________________________________ varnish-misc mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
