forked from MapComplete/MapComplete
setting headers crashes in chrome
This commit is contained in:
parent
93eeae931e
commit
bbe1d7c35e
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ const cacheFirst = (event) => {
|
|||
return cacheResponse
|
||||
}
|
||||
return fetch(event.request).then((networkResponse) => {
|
||||
networkResponse.headers.set("Cache-Control","max-age=")
|
||||
|
||||
return caches.open(version).then((cache) => {
|
||||
cache.put(event.request, networkResponse.clone());
|
||||
console.log("Cached", event.request)
|
||||
|
|
Loading…
Reference in a new issue