brought it back to V2, added it to vite config
This commit is contained in:
parent
cfe05f8517
commit
727a20292f
2 changed files with 7 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ export default defineConfig({
|
|||
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
|
||||
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB
|
||||
cleanupOutdatedCaches: true,
|
||||
navigateFallback: "/index.html",
|
||||
navigateFallback: "/indexV2.html",
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: ({ request }) => request.destination === 'document',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue