Update serviceWorker.js
This commit is contained in:
parent
31c0771062
commit
9ac8753fc5
|
@ -5,7 +5,7 @@ import { pageCache, offlineFallback } from 'workbox-recipes';
|
|||
|
||||
pageCache();
|
||||
|
||||
precacheAndRoute(self.__WB_MANIFEST);
|
||||
precacheAndRoute(self.__WB_MANIFEST.filter((item) => !item.url.match(/\/manifest\.json/i)));
|
||||
cleanupOutdatedCaches();
|
||||
|
||||
registerRoute('/share-target', async ({ event }) => {
|
||||
|
|
Loading…
Reference in a new issue