mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
fix: Remove attachments.redirect sw caching (#9927)
This commit is contained in:
+1
-14
@@ -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
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user