Thanks for the replies.<div><br></div><div>I will come up with a sample vcl this weekend.</div><div><br></div><div>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.</div>
<div><br></div><div>Thanks.<br><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 6:29 AM, Flavio Torres <span dir="ltr"><<a href="mailto:fla_torres@yahoo.com.br">fla_torres@yahoo.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div class="im">On 01/04/2011 06:14 PM, . wrote:<br>
> Thanks for your reply. I'm curious as to why you suggested I remove<br>
> the X-Varnish header? I guess my confusion is why the header doesn't<br>
> include 2 numbers, even though it is a cache HIT, and the HIT<br>
> counter is being incremented.<br>
><br>
<br>
</div>Hello,<br>
<br>
It should be increased, are you testing with a simple file (without<br>
cookies and respecting the Cache-Control header) ?<br>
<br>
# first request<br>
$ curl -I -H "Host: <a href="http://www.flaviotorres.com.br" target="_blank">www.flaviotorres.com.br</a>"<br>
<a href="http://www.flaviotorres.com.br" target="_blank">http://www.flaviotorres.com.br</a><br>
<div class="im">HTTP/1.1 200 OK<br>
</div>Last-Modified: Fri, 01 Oct 2010 11:25:07 GMT<br>
X-Mod-Pagespeed: 0.9.1.1-171<br>
Cache-Control: max-age=60<br>
Expires: Wed, 12 Jan 2011 12:11:55 GMT<br>
Vary: Accept-Encoding<br>
Content-Type: text/html; charset=UTF-8<br>
VID: 01<br>
Content-Length: 3<br>
Date: Wed, 12 Jan 2011 12:10:55 GMT<br>
X-Varnish: 1268025441<br>
Connection: keep-alive<br>
X-Cache: MISS<br>
X-Cache-Hits: 0<br>
X-Age: 0<br>
<br>
# second request<br>
$ curl -I -H "Host: <a href="http://www.flaviotorres.com.br" target="_blank">www.flaviotorres.com.br</a>"<br>
<a href="http://www.flaviotorres.com.br" target="_blank">http://www.flaviotorres.com.br</a><br>
<div class="im">HTTP/1.1 200 OK<br>
</div>Last-Modified: Fri, 01 Oct 2010 11:25:07 GMT<br>
X-Mod-Pagespeed: 0.9.1.1-171<br>
Cache-Control: max-age=60<br>
Expires: Wed, 12 Jan 2011 12:11:55 GMT<br>
Vary: Accept-Encoding<br>
Content-Type: text/html; charset=UTF-8<br>
VID: 01<br>
Content-Length: 3<br>
Date: Wed, 12 Jan 2011 12:10:59 GMT<br>
X-Varnish: 1268025442 1268025441<br>
<div class="im">Connection: keep-alive<br>
X-Cache: HIT<br>
</div>X-Cache-Hits: 1<br>
X-Age: 4<br>
<br>
# third request<br>
$ curl -I -H "Host: <a href="http://www.flaviotorres.com.br" target="_blank">www.flaviotorres.com.br</a>"<br>
<a href="http://www.flaviotorres.com.br" target="_blank">http://www.flaviotorres.com.br</a><br>
<div class="im">HTTP/1.1 200 OK<br>
</div>Last-Modified: Fri, 01 Oct 2010 11:25:07 GMT<br>
X-Mod-Pagespeed: 0.9.1.1-171<br>
Cache-Control: max-age=60<br>
Expires: Wed, 12 Jan 2011 12:11:55 GMT<br>
Vary: Accept-Encoding<br>
Content-Type: text/html; charset=UTF-8<br>
VID: 01<br>
Content-Length: 3<br>
Date: Wed, 12 Jan 2011 12:11:02 GMT<br>
X-Varnish: 1268025443 1268025441<br>
<div class="im">Connection: keep-alive<br>
X-Cache: HIT<br>
</div>X-Cache-Hits: 2<br>
X-Age: 7<br>
<div class="im"><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
</div>iEYEARECAAYFAk0tuuAACgkQNRQApncg297klgCfQuU9I2w/BfBIvFhddz6P9MIe<br>
NF4AoK5BA/ovvvsUnxcFA0ZCNLWD3CH5<br>
=hyIE<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote></div><br></div>