Update serviceWorker.js

This commit is contained in:
Pushkar Anand 2021-06-15 11:04:51 +05:30 committed by GitHub
parent 31c0771062
commit 9ac8753fc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }) => {