diff --git a/crabfit-frontend/public/sw.js b/crabfit-frontend/public/sw.js index afbc900..6d547b2 100644 --- a/crabfit-frontend/public/sw.js +++ b/crabfit-frontend/public/sw.js @@ -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.