Do not use must-revalidate in Cache-Control header

As the bug report states, 'must-revalidate' is a request directive.

Fixes #52379
This commit is contained in:
Tim Rühsen 2017-11-10 10:57:35 +01:00
parent 973c26ed7d
commit 267cd51fff

View File

@ -1869,7 +1869,7 @@ initialize_request (const struct url *u, struct http_stat *hs, int *dt, struct u
if (*dt & SEND_NOCACHE)
{
/* Cache-Control MUST be obeyed by all HTTP/1.1 caching mechanisms... */
request_set_header (req, "Cache-Control", "no-cache, must-revalidate", rel_none);
request_set_header (req, "Cache-Control", "no-cache", rel_none);
/* ... but some HTTP/1.0 caches doesn't implement Cache-Control. */
request_set_header (req, "Pragma", "no-cache", rel_none);