Re: [w3c/ServiceWorker] A way to immediately unregister a service worker (#614)

When you reload [after the clearing steps have run](https://www.w3.org/TR/clear-site-data/#clear-dom), there isn't a registration active. That means that no Service Worker registration will match the destination URL. This is also [implied by the "neuter" language in the `"executionContexts"` directive](https://www.w3.org/TR/clear-site-data/#grammardef-executioncontexts). 

Note that [the ordering of execution is *very explicit* about when these steps run relative to each other](https://www.w3.org/TR/clear-site-data/#clear-response).

All of this boils down to a pretty simple point: `Clear-Site-Data` is designed to (and does) exactly what you're looking for.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/614#issuecomment-432638140

Received on Wednesday, 24 October 2018 12:39:44 UTC