fix: PWA icon, robust socket.io reconnect, faster real-time sync

This commit is contained in:
Pepe Ziberi
2026-02-21 23:37:36 +01:00
parent e3f8f14f6a
commit 2432e9a17f
5 changed files with 53 additions and 12 deletions

View File

@@ -30,6 +30,9 @@ self.addEventListener('fetch', (event) => {
// Skip non-GET requests
if (event.request.method !== 'GET') return
// Never intercept Socket.IO — let it pass through directly
if (pathname.startsWith('/socket.io')) return
// Cacheable API routes: Network First with cache fallback (icons, hose-types, dictionary)
if (CACHEABLE_API.some(p => pathname.startsWith(p))) {
event.respondWith(