]> err.no Git - varnish/commit
Don my peril sensitive sun-glasses, and go over the TTL calculation
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 24 Jul 2008 22:12:41 +0000 (22:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 24 Jul 2008 22:12:41 +0000 (22:12 +0000)
commit2d8d38948fd96c06cc71c9c5abf3f501ef065028
tree31a99edd26450df75b4f78ecde0807137ffbe3c0
parentd469160667a43e12644b259704897cd720a680c3
Don my peril sensitive sun-glasses, and go over the TTL calculation
routine.

Follow RFC2616 more closely, and make relative (ie: max-age) specifications
take precedence over absolute specifications (Expires:)

Add an explicit clock-skew window (parameter: clock_skew) and only
interpret Expires: in absolute terms if the Date: header is inside
this window.

Explicit check for the case where the backend sends an Expires: which
is before the Date:, even if the Date: is out side our window.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3019 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt_param.c
varnish-cache/bin/varnishd/rfc2616.c