chore: set maximum file size to cache in Workbox configuration for improved performance

This commit is contained in:
2025-11-06 21:58:52 +01:00
parent d0e980b894
commit 21d19cfaef

View File

@@ -40,6 +40,7 @@ export default defineConfig(() => ({
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff,woff2}'],
maximumFileSizeToCacheInBytes: 3145728, // 3 MB
runtimeCaching: [
{
urlPattern: /^https:\/\/.*\.(?:png|jpg|jpeg|svg|gif|webp)$/,