]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: status 301 should not be marked non-cacheable
authorYves Lafon <ylafon@w3.org>
Mon, 11 Mar 2013 15:06:05 +0000 (11:06 -0400)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Mar 2013 10:22:41 +0000 (11:22 +0100)
Also, browsers behaviour is inconsistent regarding the Cache-Control
header field on a 301.

src/proto_http.c

index 24e0a766307ed05f74627cdadbec054d020a4632..b85c6aa7f758b807af45512b476690577bf3dc4a 100644 (file)
@@ -75,7 +75,6 @@ const struct chunk http_100_chunk = {
 /* Warning: no "connection" header is provided with the 3xx messages below */
 const char *HTTP_301 =
        "HTTP/1.1 301 Moved Permanently\r\n"
-       "Cache-Control: no-cache\r\n"
        "Content-length: 0\r\n"
        "Location: "; /* not terminated since it will be concatenated with the URL */