- From: Matt Bierner <notifications@github.com>
- Date: Fri, 12 Jul 2019 16:06:58 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 12 July 2019 23:07:22 UTC
To try to workaround this limitation, I've setup a domain that serves the same content on every subdomain you access (this way, the served up pages have a unique origin). These subdomains are only used once by a client and a service worker is registered for them. However I do not know if this will cause perf issue for browsers in practice. What will happen as the number of service workers builds up as we keep accessing new subdomains? [I've asked about this on StackOverflow](https://stackoverflow.com/questions/57014830/do-i-need-to-clean-up-service-workers-that-will-only-be-used-once). I think I may be able to call `unregister` on the service worker inside `window.onwillunload` but am not sure, and I don't know if this is even something to worry about -- 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/1437#issuecomment-511059036
Received on Friday, 12 July 2019 23:07:22 UTC