fix: corrections SW cache, nginx proxy, sw.js no-cache — 2026-05-01 05:48

This commit is contained in:
Claude Deploy
2026-05-01 05:48:38 +00:00
parent 5dc52a0413
commit 16820c5c14
9 changed files with 25 additions and 48 deletions
Binary file not shown.
+3 -6
View File
@@ -25,12 +25,13 @@ export default defineConfig({
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
cleanupOutdatedCaches: true,
runtimeCaching: [
{
urlPattern: /^\/api\/.*/i,
handler: 'NetworkFirst',
options: {
cacheName: 'api-cache',
cacheName: 'shoottracker-api-cache',
expiration: { maxEntries: 50, maxAgeSeconds: 60 * 5 },
networkTimeoutSeconds: 10,
}
@@ -46,8 +47,4 @@ export default defineConfig({
'/uploads': { target: 'http://localhost:3001', changeOrigin: true }
}
},
build: {
outDir: 'dist',
sourcemap: false
}
})
build: