[Varnish] #887: Varnish caches objects with negative max-age
Varnish
varnish-bugs at varnish-cache.org
Thu Mar 31 13:14:10 CEST 2011
#887: Varnish caches objects with negative max-age
----------------------+-----------------------------------------------------
Reporter: niko | Owner: phk
Type: defect | Status: new
Priority: high | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords: negative max-age, past expire
----------------------+-----------------------------------------------------
Changes (by phk):
* owner: => phk
* component: build => varnishd
Comment:
strictly speaking, RFC2616 does not allow negative values for max-age.
On page 108 it defines:
{{{
cache-request-directive =
"no-cache" ; Section 14.9.1
| "no-store" ; Section 14.9.2
| "max-age" "=" delta-seconds ; Section 14.9.3, 14.9.4
[...]
}}}
And on page 21, delta-seconds is defined as:
{{{
delta-seconds = 1*DIGIT
}}}
However, it would probably make sense to handle invalid values sanely.
--
Ticket URL: <http://varnish-cache.org/trac/ticket/887#comment:1>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list