Skip to content

Commit 8a8f0f2

Browse files
committed
feat: update Workbox configuration to include XML files in cache patterns and add navigate fallback denylist
1 parent 491313b commit 8a8f0f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export default defineConfig({
5858
],
5959
},
6060
workbox: {
61-
globPatterns: ['**/*.{js,css,html,ico,png,svg,json}'],
61+
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,xml}'],
6262
globIgnores: ['**/site-version.json'],
63+
navigateFallbackDenylist: [/\.xml$/],
6364
maximumFileSizeToCacheInBytes: 4000000, // 4MB to allow React/UI vendor chunks
6465
runtimeCaching: [
6566
{

0 commit comments

Comments
 (0)