fix: sw requestURL

This commit is contained in:
Jean-Baptiste Pasquier 2020-12-04 15:14:23 +00:00
parent 2e63a3d8ff
commit 1a7a41dae6
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const CACHE_NAME = 'hubl-store-swfc14';
const CACHE_NAME = 'hubl-store-swfc15';
self.addEventListener('install', function (e) {
self.skipWaiting();
@ -72,7 +72,7 @@ self.addEventListener('fetch', function (event) {
} else {
if (
/unpkg/.test(requestURL.origin) ||
/skypack/.test(request.origin) ||
/skypack/.test(requestURL.origin) ||
/jspm/.test(requestURL.origin) ||
/jsdeliver/.test(requestURL.origin) ||
/cdn/.test(requestURL.origin) ||