[whatwg/fetch] Pragma in responses (#1018)

The [CORS safelisted responses headers list](https://fetch.spec.whatwg.org/#cors-safelisted-response-header-name) includes `Pragma`.

[Section 5.4 of RFC 7234](https://httpwg.org/specs/rfc7234.html#header.pragma) specifically states that `Pragma` only has semantics in requests.

On the other side of this, we recently discovered a few cases where `Pragma` was used instead of `Cache-Control`.  That is inadvisable, but it does seem to be in use still; how much is redundant with Cache-Control is hard to know.  Chrome treats `Pragma: no-cache` like `Cache-Control: no-cache` in both request and response.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1018

Received on Tuesday, 7 April 2020 08:50:50 UTC