mirror of
https://github.com/mroxso/zelo-news.git
synced 2026-06-05 18:11:10 +02:00
chore: set maximum file size to cache in Workbox configuration for improved performance
This commit is contained in:
@@ -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)$/,
|
||||
|
||||
Reference in New Issue
Block a user