[Varnish] #938: Doc issue: max-age should not contain spaces.
Varnish
varnish-bugs at varnish-cache.org
Fri Jun 10 22:50:45 CEST 2011
#938: Doc issue: max-age should not contain spaces.
-------------------------+--------------------------------------------------
Reporter: frankfarmer | Type: documentation
Status: new | Priority: lowest
Milestone: | Component: documentation
Version: trunk | Severity: trivial
Keywords: |
-------------------------+--------------------------------------------------
This doc specifies headers as "cache-control: max-age = 900":
http://www.varnish-cache.org/trac/wiki/VCLExampleLongerCaching
Apparently, it'd be more correct to use:
set beresp.http.Cache-Control = "max-age=900";
Specifically, we've found in our testing that:
1. RFC2616 seems to not allow for spaces in this context:
{{{
"max-age" "=" delta-seconds ; Section 14.9.3, 14.9.4
delta-seconds = 1*DIGIT
}}}
1. YSlow and Firebug seem to ignore max-age if there are spaces, which is
probably related to the next point:
1. The firefox, unlike other major browsers, doesn't appear to tolerate
spaces in max-age. See
http://mxr.mozilla.org/mozilla2.0/source/netwerk/protocol/http/nsHttpResponseHead.cpp
line 533
{{{
533 const char *p = PL_strcasestr(val, "max-age=");
}}}
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/938>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list