Uppdatera 'sw.js'

Add if in sw.js line 48
This commit is contained in:
Henrik Bygren 2022-05-18 13:41:45 +00:00
parent bd4ff27351
commit 7d019f735d

1
sw.js
View File

@ -45,6 +45,7 @@
/** cache-filer först, upddaterar cache från servern */
self.addEventListener('fetch', function (event) {
if (!(event.request.url.indexOf('http') === 0)) return;
event.respondWith(
caches.open(cacheKey).then(function (cache) {
return cache.match(event.request).then(function (response) {