r305 - trunk/varnish-cache/bin/varnishd

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jul 5 00:10:56 CEST 2006


In message <20060704220833.C81DF1EC30B at projects.linpro.no>, phk at projects.linpro
.no writes:
>Author: phk
>Date: 2006-07-05 00:08:33 +0200 (Wed, 05 Jul 2006)
>New Revision: 305
>
>Modified:
>   trunk/varnish-cache/bin/varnishd/rfc2616.c
>Log:
>Implement our TTL calculation.
>
>A first quick check against the weird timestamps from the VG frontend
>squids indicates sensible behaviour.

The only instance which made me wonder is this one:

11  27   23 URL          </pub/vgart.hbs?artid=121887>
12   8   24 Protocol     <HTTP/1.0>
10   3   24 Status       <200>
0f   2   24 Response     <OK>
13  35   24 Header       <Date: Tue, 04 Jul 2006 21:56:26 GMT>
13  28   24 Header       <Server: Apache/1.3.27 (Unix)>
13  23   24 Header       <Content-Type: text/html>
13  28   24 Header       <X-Cache: MISS from www.vg.no>
13   8   24 Header       <Age: 489>
13  27   24 Header       <X-Cache: HIT from www.vg.no>
13  17   24 Header       <Connection: close>

We get an Age: header, but no expires and no max-age, so we apply
the default_ttl (120 seconds):

01 114    0 Debug        <TTD: max-age 0 Age: 0 Date: 1152050186 (-489) Expires 0 (-1152050675) our_clock 1152050675 -> ttd 1152050795 (120)>


-- 
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