Cacheability - changed in Varnish 2?

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jan 29 09:34:41 CET 2009


In message <4980F7D8.8090405 at giraffen.dk>, Anton Stonor writes:

>New try. First, a request with no expire or cache-control header.

>    10 RxProtocol   b HTTP/1.1
>    10 RxStatus     b 200
>    10 RxResponse   b OK
>    10 RxHeader     b Server: Zope/(Zope 2.10.6-final, python 2.4.5, 
>linux2) ZServer/1.1 Plone/3.1.5.1
>    10 RxHeader     b Date: Thu, 29 Jan 2009 00:10:40 GMT
>    10 RxHeader     b Content-Length: 4
>    10 RxHeader     b Content-Type: text/plain; charset=utf-8
>     9 ObjProtocol  c HTTP/1.1
>     9 ObjStatus    c 200
>     9 ObjResponse  c OK
>     9 ObjHeader    c Server: Zope/(Zope 2.10.6-final, python 2.4.5, 
>linux2) ZServer/1.1 Plone/3.1.5.1
>     9 ObjHeader    c Date: Thu, 29 Jan 2009 00:10:40 GMT
>     9 ObjHeader    c Content-Type: text/plain; charset=utf-8
>    10 BackendReuse b backend_0
>     9 TTL          c 1495399095 RFC 0 1233187840 0 0 0 0


As far as I can tell, a zero TTL (number after "RFC") can only
happen here if your default_ttl parameter is set to zero, OR
if there is clock-skew between the varnish machine and the
backend machine.

Make sure both machines run NTP.

You can test that they agree by running
	ntpdate -d $backend
on the varnish machine (or vice versa).

-- 
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-misc mailing list