#Service worker in astro
3 messages · Page 1 of 1 (latest)
Hi @echo fiber. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the information provided in the extracts, it seems that there are some issues with service workers in Astro. In one of the GitHub issues (https://github.com/withastro/astro/issues/1195), a user reported that Astro doesn't build web workers while running astro build, but it does build them while running astro dev.
In another GitHub issue (https://github.com/withastro/astro/issues/6729), users reported that they were experiencing issues with service workers after updating Astro. The service worker was correctly installed when using the build version of the website, but not when using astro dev.
One user suggested checking if "Bypass for network" is disabled in dev tools under Application -> Service Worker. If it's enabled, it might cause all requests to the service worker to be skipped, which could make it seem like the service worker isn't working.