diff --git a/package.json b/package.json index 643eca10a..9acd1cb65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.117", + "version": "2.14.118", "private": true, "scripts": { "dev": "vite --host", diff --git a/vite.config.ts b/vite.config.ts index 13df092f4..264c2b5b8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -92,11 +92,9 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ], }, workbox: { + navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/], + // globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'], runtimeCaching: [ - { - urlPattern: /^https?:\/\/.+?\/(?:api|download)\/.+/, - handler: "NetworkOnly", - }, { urlPattern: /.*\.(?:js|css|gz|html|json)/i, // json handler: 'CacheFirst',