Update ServiceWorker.ss

This commit is contained in:
Michel vd Steege 2018-07-11 15:41:38 +02:00 committed by GitHub
parent b435128ac0
commit 5b93c34485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,12 @@
if (event.request.method !== 'GET') { if (event.request.method !== 'GET') {
return; return;
} }
//Skip admin url's
if(requestURL.pathname.indexOf('admin') >= 0){
log('Service worker: skip admin ' + event.request.url);
return;
}
//Parse the url //Parse the url
var requestURL = new URL(event.request.url); var requestURL = new URL(event.request.url);
@ -118,4 +124,4 @@
return response || fetch(event.request); return response || fetch(event.request);
})); }));
}); });
//<%--Ugly fix for code highlights</script>--%> //<%--Ugly fix for code highlights</script>--%>