Move clean fn
This commit is contained in:
parent
d8c08a7f60
commit
1463773480
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue