mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
pwa optimize & fixes
This commit is contained in:
@@ -20,6 +20,12 @@ export default defineConfig({
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
|
||||
devOptions: {
|
||||
suppressWarnings: true,
|
||||
enabled: true,
|
||||
type: 'classic',
|
||||
},
|
||||
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,png,svg,img,woff,woff2}'],
|
||||
|
||||
@@ -44,6 +50,7 @@ export default defineConfig({
|
||||
options: {
|
||||
cacheName: 'spythere-api-cache',
|
||||
expiration: {
|
||||
maxEntries: 150,
|
||||
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
||||
},
|
||||
cacheableResponse: {
|
||||
|
||||
Reference in New Issue
Block a user