Compare commits

..

No commits in common. "964b3b1cddad2e4f9900029f92b03a215ce3c969" and "cb4d3bfc7930595cabbb35e3a79b5209fd697dd9" have entirely different histories.

View file

@ -16,9 +16,7 @@ sw.addEventListener('install', (event) => {
event.waitUntil( event.waitUntil(
caches caches
.open(CACHE) .open(CACHE)
// Bypass the HTTP cache: hashed assets are cached as immutable, so a bad .then((c) => c.addAll(ASSETS))
// 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(() => sw.skipWaiting()) .then(() => sw.skipWaiting())
); );
}); });