fix: Remove attachments.redirect sw caching (#9927)

This commit is contained in:
Tom Moor
2025-08-14 08:02:00 -04:00
committed by GitHub
parent 6bc80720c9
commit d2a50256b0
+1 -14
View File
@@ -84,20 +84,6 @@ export default () =>
},
},
},
{
urlPattern: /api\/attachments\.redirect/,
handler: "CacheFirst",
options: {
cacheName: "attachments-redirect-cache",
expiration: {
maxEntries: 100,
maxAgeSeconds: 120, // 120 seconds
},
cacheableResponse: {
statuses: [0, 200, 302], // Include redirects
},
},
},
{
urlPattern: /api\/files\.get/,
handler: "CacheFirst",
@@ -110,6 +96,7 @@ export default () =>
cacheableResponse: {
statuses: [0, 200, 206], // Include partial content for range requests
},
rangeRequests: true, // Allow range requests for partial content
},
},
],