First request is always a miss (per client)

Frederik Schumacher frederik.schumacher at
Thu Nov 18 17:38:24 CET 2010


I'm running a Pressflow site on a LAMP with Apache on port 8080 and
Varnish on port 80. My problem is, that the very first request from
any client is always a miss, this even happens on the same machine -
using for example Firefox for the first request (miss), then curl -I
(miss), then Firefox (hit), then curl -I (hit). Every request after
that is a cache hit. Let's say I request "localhost/foo" using Firefox
and it's a miss (and then gets cached), shouldn't "curl -I
http://localhost/foo" right after that be a hit? Is this expected
behavior, or a mis-configuration?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default.vcl
Type: application/octet-stream
Size: 3343 bytes
Desc: not available
URL: <>

More information about the varnish-misc mailing list