Compare commits
No commits in common. "964b3b1cddad2e4f9900029f92b03a215ce3c969" and "cb4d3bfc7930595cabbb35e3a79b5209fd697dd9" have entirely different histories.
964b3b1cdd
...
cb4d3bfc79
1 changed files with 1 additions and 3 deletions
|
|
@ -16,9 +16,7 @@ sw.addEventListener('install', (event) => {
|
|||
event.waitUntil(
|
||||
caches
|
||||
.open(CACHE)
|
||||
// Bypass the HTTP cache: hashed assets are cached as immutable, so a bad
|
||||
// response (e.g. a wrong MIME type) would otherwise be copied in forever.
|
||||
.then((c) => c.addAll(ASSETS.map((url) => new Request(url, { cache: 'reload' }))))
|
||||
.then((c) => c.addAll(ASSETS))
|
||||
.then(() => sw.skipWaiting())
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue