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() skipWaiting()
clientsClaim() clientsClaim()
cleanupOutdatedCaches()
// Injection point // Injection point
precacheAndRoute(self.__WB_MANIFEST) precacheAndRoute(self.__WB_MANIFEST)
cleanupOutdatedCaches()
const fileExtensionRegexp = new RegExp('/[^/?]+\\.[^/]+$') const fileExtensionRegexp = new RegExp('/[^/?]+\\.[^/]+$')
registerRoute( registerRoute(
// Return false to exempt requests from being fulfilled by index.html. // Return false to exempt requests from being fulfilled by index.html.