Closed Hornwitser closed 2 weeks ago
FYI, in Chrome you can remove a service worker by going to the "Application" tab in the developer tools (F12)
closing since the site has been rewritten. please file an issue at https://github.com/sveltejs/svelte.dev if the issue persists
Describe the bug
Every time I open svelte.dev after (re)starting the Edge browser it take 5 minutes of waiting before the site actually loads. This is due to a broken service worker that has been installed in the past but have since been removed from the site. The problem is that there is either no code to remove the cached service-worker, or this code does not work. Note that once installed in a users browser a copy of the service worker will live forever there, it is not enough to remove the code installing it to get rid of it on users browsers.
The script url for the service worker is
https://svelte.dev/service-worker.js
(this currently returns 404). The source code cached on in my browser for this service worker is (unminified)Suggested actions:
https://svelte.dev/service-worker.js
so that it gets updated and removed for people who have it on their browser. (Browsers will try updating the service worker if it hasn't been updated in 24 hours and the site is accessed.)See https://love2dev.com/blog/how-to-uninstall-a-service-worker/ for more details.
Reproduction
This is not to my knowledge reproducible as it requires a browser that loaded the stale service worker before it was removed from the site. But if you have a browser with the stale service worker installed simply trying to open svelte.dev after restarting the browser greets you with 5 minutes of waiting for it to load.
Logs
No response
System Info
Severity
annoyance