zaphyra's git: domsonic

subsonic web-client

commit c1d57f0399ee699e7cc12e4de722df6159fa2862
parent 1a49015b466af151e47bf1bf3dec971a03429ea4
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Fri, 24 Jul 2026 11:17:34 +0200

service-worker: exclude navidrome ui specific stuff
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/public/service-worker.js b/public/service-worker.js
@@ -1,6 +1,6 @@
 const
   APP_BASE = '/',
-  SW_VERSION = 'v1.2.0',
+  SW_VERSION = 'v1.3.0',
 
   // Cache names
   SHELL_CACHE = `shell-${SW_VERSION}`,

@@ -86,6 +86,11 @@ self.addEventListener(
 
     if (request.method !== 'GET') return
 
+    if (url.pathname.includes('/oauth2') return
+    if (url.pathname.includes('/app') return
+    if (url.pathname.includes('/api') return
+    if (url.pathname.includes('/auth') return
+
     /* SPA navigation */
     if (request.mode === 'navigate') {
       event.respondWith(networkFirst(request, SHELL_CACHE))