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