Skip to content

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

fix(backend:files): enable `cacheControl` to ensure consistent client-side caching behavior

johaven25ab56808b7f
diff --git a/backend/src/applications/files/utils/send-file.ts b/backend/src/applications/files/utils/send-file.ts
index 08834da2..cbfa21cb 100644
--- a/backend/src/applications/files/utils/send-file.ts
+++ b/backend/src/applications/files/utils/send-file.ts
@@ -23,7 +23,7 @@ export class SendFile {
etag: true,
dotfiles: 'allow',
lastModified: true,
- cacheControl: false,
+ cacheControl: true,
index: false,
highWaterMark: DEFAULT_HIGH_WATER_MARK
}