From 075c621614e5546931f82d24bd915ed82464db30 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 23 Mar 2026 22:26:56 +0100 Subject: [PATCH] fix(sw): skip caching non-http/https requests --- app/static/sw.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/static/sw.js b/app/static/sw.js index e06015d..184a43d 100644 --- a/app/static/sw.js +++ b/app/static/sw.js @@ -16,6 +16,9 @@ self.addEventListener('activate', e => { self.addEventListener('fetch', e => { const url = new URL(e.request.url); + // Only handle http/https requests + if (url.protocol !== 'http:' && url.protocol !== 'https:') return; + // Pass through API calls if (url.pathname === '/extract-audio') return;