[whatwg/fetch] Make it more clear that cache mode "default" does respect Cache-Control headers and such (#336)

Basically, when you go to the HTTP cache with a request whose cache mode is "default", and the request also has Cache-Control or Pragma headers, those need to be respected by the HTTP cache, just as they always were.

Alternatively we could make those headers and their values change the cache mode:

* If the cache mode is “default” and a `Cache-Control` or `Pragma` Header is present, whose value is “no-cache”, then set the cache mode from “Default” to no-cache.
* If the cache mode is “default” and a `Cache-Control` or `Pragma` Header is present, whose value is “no-store”, then change the cache mode from “Default” to no-store.

That's not observable so either approach is probably fine. Thoughts anyone?

---
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/336

Received on Wednesday, 20 July 2016 04:58:18 UTC