Re: [ServiceWorker] Service-Worker-Allowed header (#604)

> a special `none` or blank value to `Service-Worker-Allowed` to disable SWs entirely

To my understanding, `Service-Worker-Allowed` header as-is actually means `Scope-Allowed-For-This-Service-Worker`.

That said, if it's something we wanted to kill the SW registration this script has been bound to, then I think it sort of makes sense we use this header for that. The expected behavior would be to invoke Clear Registration algorithm no matter whether some pages are currently being controlled. (or to invoke Unregister if we take more conservative approach.)

But if it's something we wanted to kill all the registrations or something like that, then it seems we need another header (directive).

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

Received on Friday, 23 January 2015 02:08:58 UTC