- From: Andrew Sutherland <notifications@github.com>
- Date: Fri, 07 Feb 2025 09:03:13 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 7 February 2025 17:03:18 UTC
I think the most practical approach is to require dedicated workers spawned by ServiceWorkers to be controlled by the ServiceWorker that spawned them, including using the routes for that registration. The ServiceWorker would be responsible for caching the worker scripts, ideally as part of the install phase, but it doesn't seem worth it to try and add enforcement mechanisms for that like we have for ServiceWorker scripts or for the update check mechanism to change. The spec would also need to be clear that the controlled worker clients should not extend the underlying lifetime of the ServiceWorker similar to how ServiceWorker.postMessage from a ServiceWorker to another ServiceWorker should not extend the lifetime of the recipient ServiceWorker beyond the lifetime of the sender. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1529#issuecomment-2643492051 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1529/2643492051@github.com>
Received on Friday, 7 February 2025 17:03:18 UTC