Varnish caches objects per session for ?

Poul-Henning Kamp phk at
Sat Dec 22 09:39:22 CET 2007

In message <476BA019.5010107 at>, Michael Lee writes:

>2. Access
>3. Check the http response header and got a "HTTP/1.x 200 OK" response. (cache miss)
>4. Reload page and got a "HTTP/1.x 304 Not Modified
>" response. (cache hit)
>Does it mean that the first time when I accessed, the cache was missed? So varnish re-fetched the contents for me. And the 2nd time, cache was hit. 

No, it means that your browser asked to not have the object sent if
it wasn't changed since the last one it got.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-commit mailing list