/// /// /// declare let self: ServiceWorkerGlobalScope import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching' import { clientsClaim } from 'workbox-core' cleanupOutdatedCaches() // cleanup everything that's not needed anymore precacheAndRoute(self.__WB_MANIFEST) //cache our new stuff self.skipWaiting() clientsClaim()