Alex Rousskov wrote:
> > Cache-control: "max-age=86400"
>
> According to RFC 2616, the Cache-control directive above is invalid and
> should be ignored by a recipient. IIRC, Squid will not honor that directive
> even if it receives it. The correct syntax would be:
> Cache-control: max-age=86400
Agreed. It is invalid as it denotes the Cache-Control directive name
"max-age=86400" which is different from the directive "max-age" with the
value of "86400".
end of RFC2616 section 2.2 Basic Rules
A string of text is parsed as a single word if it is quoted using
double-quote marks.
This together with the definition of max-age in section "14.9
Cache-Control" gives the following valid syntaxes of the max-age=86400
cache-control directive
max-age=86400
max-age="86400"
"max-age"="86400"
"max-age"=86400
or any of these with any amount of leading zeroes on the value, as in
"max-age"="0000000000000000000000000000000000000000086400"
-- Henrik Nordstrom Spare time Squid hackerReceived on Tue Jul 29 2003 - 13:16:00 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:17 MST