mirror of
https://github.com/dergigi/boris.git
synced 2026-02-02 13:44:35 +01:00
Service Worker was only registered in production, but vite-plugin-pwa has devOptions.enabled=true, so SW should work in dev too. Now we: 1. Register SW in both dev and prod modes 2. Use correct SW path for dev (/dev-sw.js?dev-sw) vs prod (/sw.js) 3. Add comprehensive debug logs for registration and activation 4. Log Service Worker state changes for debugging Service Workers don't require PWA installation - they work in regular browsers. This enables image caching in development mode.