feat(sw): implement and enable robust service worker caching

- Re-enabled automatic service worker registration in svelte.config.js.
- Implemented a production-ready service-worker.js using SvelteKit metadata (-worker).
- Added intelligent caching for build artifacts, static files, and network fallbacks.
- This ensures the UI shell and assets load instantly from disk, completing the hydration performance workstream.
This commit is contained in:
Scott Idem
2026-01-26 17:19:30 -05:00
parent ef597bc058
commit 0a390c9505
2 changed files with 59 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ const config = {
},
kit: {
serviceWorker: {
register: false
register: true
},
adapter: adapter_node()