From 7ae2f40bbb5bdd1622892daea166432b7a65df9f Mon Sep 17 00:00:00 2001 From: Sebas <36385457+ZEBAS204@users.noreply.github.com> Date: Mon, 27 Mar 2023 23:05:10 -0300 Subject: [PATCH] Make service worker also cache fonts --- scripts/viteServiceWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/viteServiceWorker.js b/scripts/viteServiceWorker.js index c524868..8f614c4 100644 --- a/scripts/viteServiceWorker.js +++ b/scripts/viteServiceWorker.js @@ -47,7 +47,7 @@ export const viteServiceWorker = { clientsClaim: true, // Needed for offline usage skipWaiting: true, // Allow to trigger cache reload manually - globPatterns: ['**/*.{js,css,scss,html}'], + globPatterns: ['**/*.{js,css,scss,html,woff2}'], runtimeCaching: [ { urlPattern: ({ url }) => url.pathname.startsWith('/locales/'),