- From: Pipo <notifications@github.com>
- Date: Wed, 28 Feb 2024 06:55:01 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 February 2024 14:55:05 UTC
In 2024 this still seems to be an issue, I tried your solution, which works, but has a bug: if you open a new tab with the same link, while a tab is already opened, the service worker catches the navigate event and still think it has only 1 client, since the second one is loading, and therefore skip waiting, even though the first client has not reloaded. This leads to a situation when the first client was loaded using the old sw but now is controlled by the new one, making this solution risky =/ -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1238#issuecomment-1969158811 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1238/1969158811@github.com>
Received on Wednesday, 28 February 2024 14:55:05 UTC