From 28038d7c6d8957f3f0ac1d4e0eeefb66f946a364 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 2 Nov 2022 09:14:39 +0100 Subject: [PATCH] Update documentation/docs/30-advanced/40-service-workers.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- documentation/docs/30-advanced/40-service-workers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/30-advanced/40-service-workers.md b/documentation/docs/30-advanced/40-service-workers.md index c185d5ec4406..f4a78fe8dec5 100644 --- a/documentation/docs/30-advanced/40-service-workers.md +++ b/documentation/docs/30-advanced/40-service-workers.md @@ -73,4 +73,4 @@ self.addEventListener('fetch', (event) => { > Careful with caching too much for too long! Browsers have a limit on the amount they cache, and not everything should be cached, for example requests that contain dynamic data that change over time -Because the service worker needs to be bundled (since browsers don't yet support `import` in this context), and depends on the client-side app's build manifest, **service workers only work in the production build, not in development**. To test it locally, use `vite preview` after running a build. +Because service workers need to be bundled (since browsers don't yet support `import` in this context), **SvelteKit's service workers only work in the production build, not in development**, since it depends on the client-side app's build manifest. To test it locally, use `vite preview` after running a build.