Compare commits

..

2 Commits

Author SHA1 Message Date
Philipinho 290b7d9d94 v0.6.2 2024-12-14 20:39:19 +00:00
Philip Okugbe 2503bfd3a2 fix: prevent CDNs from caching attachments (#562) 2024-12-14 19:55:49 +00:00
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "client",
"private": true,
"version": "0.6.1",
"version": "0.6.2",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "server",
"version": "0.6.1",
"version": "0.6.2",
"description": "",
"author": "",
"private": true,
@@ -178,7 +178,7 @@ export class AttachmentController {
const fileStream = await this.storageService.read(attachment.filePath);
res.headers({
'Content-Type': attachment.mimeType,
'Cache-Control': 'public, max-age=3600',
'Cache-Control': 'private, max-age=3600',
});
if (!inlineFileExtensions.includes(attachment.fileExt)) {
@@ -299,7 +299,7 @@ export class AttachmentController {
const fileStream = await this.storageService.read(filePath);
res.headers({
'Content-Type': getMimeType(filePath),
'Cache-Control': 'public, max-age=86400',
'Cache-Control': 'private, max-age=86400',
});
return res.send(fileStream);
} catch (err) {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "docmost",
"homepage": "https://docmost.com",
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"scripts": {
"build": "nx run-many -t build",