Re: [ServiceWorker] A header/something to kill SWs (#614)

> I believe in the spec 'scope' is already required to be absolute anyway

Nah, they can be relative (to the page).

The kill switch idea came up before and https://github.com/slightlyoff/ServiceWorker/issues/236 was created as a result. Would that work here? You could serve a SW that contained only:

```
self.registration.unregister({immediate: true})
```

…which would unregister but also un-claim all pages immediately. Alternatively, `clients.release()` as an explicit opposite to 'claim'.

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

Received on Monday, 9 February 2015 14:00:57 UTC