- From: Jxck <notifications@github.com>
- Date: Thu, 03 Dec 2020 00:08:34 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 3 December 2020 08:08:46 UTC
https://fetch.spec.whatwg.org/#http-network-or-cache-fetch > 13. If httpRequest’s cache mode is "no-cache", httpRequest’s prevent no-cache cache-control header modification flag is unset, and httpRequest’s header list does not contain `Cache-Control`, then append `Cache-Control`/`max-age=0` to httpRequest’s header list. I don't understand why not use `Cache-Control: no-cache` but use `Cache-Control: max-age=0` for no-cache mode ? I think this change happens in #232 but it mentions Gecko's behavior only and no reason why to do that. Cache-Control is HTTP/1.1 so it reasonable using Pragma for HTTP/1.0, but `no-cache` and `max-age` is in the same spec so it seems that there are no reason to use `no-cache` instead of `max-age=0` for me. cc. @annevk @ehsan -- 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/1121
Received on Thursday, 3 December 2020 08:08:46 UTC