Re: [slightlyoff/ServiceWorker] if service-worker-allowed header changes should active worker be potentially unregistered? (#857)

We came up with a similar situation while developing our WordPress suite for progressivizing blogs. It turned out we are generating the service worker [by collaboration](https://github.com/mozilla/wp-sw-manager/#usage). As one plugin is enabled, it adds its contents to the worker but what happen when all are disabled is a little bit surprising. The dynamic sw is no more generated but [the service worker does not get unregistered](https://github.com/mozilla/wp-sw-manager/issues/2).

The solution is to check the response from the sw itself and let the sw to unregister itself. Maybe the solution is similar for this case.

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

Received on Friday, 1 April 2016 17:10:52 UTC