From: Yves Lafon Date: Mon, 11 Mar 2013 15:06:05 +0000 (-0400) Subject: MINOR: http: status 301 should not be marked non-cacheable X-Git-Tag: v1.5-dev18~51 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=e267421e93eb35272a104c9c8fa6878880f42be8;p=haproxy.git MINOR: http: status 301 should not be marked non-cacheable Also, browsers behaviour is inconsistent regarding the Cache-Control header field on a 301. --- diff --git a/src/proto_http.c b/src/proto_http.c index 24e0a7663..b85c6aa7f 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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 */