Trouble understanding Varnishlog
.
gmoniey at gmail.com
Wed Jan 12 22:27:33 CET 2011
Thanks for the replies.
I will come up with a sample vcl this weekend.
As far as how I am testing; I am hitting a page which HAS cookies. I am
trying to have Varnish ignore the cookies (but not strip them) from the
requests.
Thanks.
On Wed, Jan 12, 2011 at 6:29 AM, Flavio Torres <fla_torres at yahoo.com.br>wrote:
>
> -----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-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110112/80ecfeae/attachment-0003.html>
More information about the varnish-misc
mailing list