Re: [ServiceWorker] Support modifying cookies on an intercepted fetch (#837)

I'm not sure what "detect the cookies are out of date" means, but cookies don't become part of a request until after a service worker has potentially processed it (in [http fetch](https://fetch.spec.whatwg.org/#http-fetch) step 3 a service worker gets access to the request, and it isn't until step 4.4 when a request eventually reaches step 12.1 of [HTTP-network-or-cache fetch](https://fetch.spec.whatwg.org/#concept-http-network-or-cache-fetch) that cookies get applied to the request).

So a SW could definitely modify what cookies will be part of a request, if it had an API to do so. Currently service workers don't have any APIs to read/modify cookies (#707) though.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/837#issuecomment-187365977

Received on Monday, 22 February 2016 20:16:39 UTC