diff --git a/src/platform/web/docroot/sw.js b/src/platform/web/docroot/sw.js index 29b124d9..1dbe21f9 100644 --- a/src/platform/web/docroot/sw.js +++ b/src/platform/web/docroot/sw.js @@ -69,7 +69,14 @@ async function purgeOldCaches() { } self.addEventListener('fetch', (event) => { - event.respondWith(handleRequest(event.request)); + /* + service worker shouldn't handle xhr uploads because otherwise + the progress events won't fire. + This has to do with xhr not being supported in service workers. + */ + if (event.request.method === "GET") { + event.respondWith(handleRequest(event.request)); + } }); function isCacheableThumbnail(url) {