diff --git a/src/service-worker.ts b/src/service-worker.ts index 4aeb74b..0ea539f 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -33,7 +33,10 @@ // Cache the locale files (currently the only preloading step) registerRoute( - ({ url }) => url.pathname.startsWith("/locales/"), + ({ url }) => ( + url.pathname.startsWith("/locales/") + || url.pathname.startsWith("/static/js/locale-") + ), new StaleWhileRevalidate({}) );