added more ignores to service worker

This commit is contained in:
subnub
2025-02-21 16:18:50 -05:00
parent 7e74cffd23
commit cb6b42943e
+7 -1
View File
@@ -19,7 +19,13 @@ export default defineConfig(({ mode }) => {
VitePWA({
registerType: "autoUpdate",
workbox: {
navigateFallbackDenylist: [/^\/file-service\/download\//],
navigateFallbackDenylist: [
/^\/file-service\/download\//, // Matches any path starting with /file-service/download/
/^\/file-service\/public\/download\/[^\/]+\/[^\/]+/, // Matches /file-service/public/download/:id/:tempToken
/^\/folder-service\/download-zip/, // Matches /folder-service/download-zip
/^\/file-service\/stream-video\/[^\/]+/, // Matches /file-service/stream-video/:id
/^\/file-service\/download\/[^\/]+/, // Matches /file-service/download/:id
],
},
}),
],