Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(backend:files): set `maxAge` to 0 to enforce immediate cache invalidation

johaven293f34cb0e4b
diff --git a/backend/src/applications/files/utils/send-file.ts b/backend/src/applications/files/utils/send-file.ts
index 3c4533ee..d8a15f01 100644
--- a/backend/src/applications/files/utils/send-file.ts
+++ b/backend/src/applications/files/utils/send-file.ts
@@ -24,6 +24,7 @@ export class SendFile {
dotfiles: 'allow',
lastModified: true,
cacheControl: true,
+ maxAge: 0,
index: false,
highWaterMark: DEFAULT_HIGH_WATER_MARK
}