Skip to content

Commit

Permalink
Make service worker also cache fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEBAS204 committed Mar 28, 2023
1 parent 50d2a57 commit 7ae2f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/viteServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/'),
Expand Down

1 comment on commit 7ae2f40

@vercel
Copy link

@vercel vercel bot commented on 7ae2f40 Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.