diff --git a/src/platform/web/docroot/sw.js b/src/platform/web/docroot/sw.js index 9b5da128..7eab4758 100644 --- a/src/platform/web/docroot/sw.js +++ b/src/platform/web/docroot/sw.js @@ -69,12 +69,9 @@ async function purgeOldCaches() { } self.addEventListener('fetch', async (event) => { - if (event.request.method === "POST" && - (await event.request.blob()).type !== "application/json" && - event.request.body) { - return; + if (event.request.method === "GET") { + event.respondWith(handleRequest(event.request)); } - event.respondWith(handleRequest(event.request)); }); function isCacheableThumbnail(url) {