Commit Graph

3 Commits

Author SHA1 Message Date
RicoUHD
123a967190 fix(pwa): improve Service Worker update strategy and cache management
- Set updateViaCache to 'none' in SW registration to bypass HTTP cache for the worker script.
- Implemented periodic update checks every hour and update listeners.
- Integrated immediate activation (self.skipWaiting) and adoption (self.clients.claim) in sw.js to resolve cache lock-in instantly.
- Optimized stale-while-revalidate strategy in sw.js to use event.waitUntil to guarantee background fetches complete.
- Removed duplicate css/main.css stylesheet load in base.html template.
- Added app/static/js/vendor/ and app/static/css/vendor/ to .dockerignore to keep Docker daemon build contexts clean.
2026-05-25 14:36:33 +02:00
RicoUHD
7a0f5fdcd1 fix(pwa): resolve persistent Service Worker cache-first WSOD lock-in
- Swapped URLs in urlsToCache from blocked node_modules to safe vendor directories.
- Changed cache strategy for HTML/page-navigation to Network-First, preventing dynamic server pages from getting frozen in cache.
- Bumped CACHE_NAME to wizarr-v2 to automatically trigger old cache eviction for existing users.
2026-05-25 14:24:33 +02:00
Matthieu B
1634a5b928 Added PWA 2025-07-13 14:54:27 +02:00