Move clean fn

This commit is contained in:
Ben Grant 2022-08-20 20:35:58 +10:00
parent d8c08a7f60
commit 1463773480

View file

@ -8,11 +8,12 @@ import { StaleWhileRevalidate, NetworkFirst } from 'workbox-strategies'
skipWaiting()
clientsClaim()
cleanupOutdatedCaches()
// Injection point
precacheAndRoute(self.__WB_MANIFEST)
cleanupOutdatedCaches()
const fileExtensionRegexp = new RegExp('/[^/?]+\\.[^/]+$')
registerRoute(
// Return false to exempt requests from being fulfilled by index.html.