Return on upload in sw

This commit is contained in:
RMidhunSuresh 2021-11-08 14:37:32 +05:30
parent 2afcddbf49
commit d31371b486

View file

@ -69,6 +69,9 @@ async function purgeOldCaches() {
}
self.addEventListener('fetch', (event) => {
if (event.request.url.indexOf("upload") !== -1) {
return;
}
event.respondWith(handleRequest(event.request));
});