mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 01:00:13 +08:00
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:
parent
973c26ed7d
commit
267cd51fff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user