Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(server): doc cache makes publish mode updating failed (#6444)

forehalo2dc628eca5a4
diff --git a/packages/backend/server/src/core/workspaces/controller.ts b/packages/backend/server/src/core/workspaces/controller.ts
index b0afb968aa..cd37fe9084 100644
--- a/packages/backend/server/src/core/workspaces/controller.ts
+++ b/packages/backend/server/src/core/workspaces/controller.ts
@@ -109,11 +109,6 @@ export class WorkspacesController {
}
res.setHeader('content-type', 'application/octet-stream');
- res.setHeader(
- 'last-modified',
- new Date(binResponse.timestamp).toUTCString()
- );
- res.setHeader('cache-control', 'private, max-age=2592000');
res.send(binResponse.binary);
}