This commit is contained in:
tamaina 2025-09-04 01:02:17 +09:00
parent 510cc6692f
commit dea632654a
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ export class FileServerService {
} }
reply.header('Content-Type', FILE_TYPE_BROWSERSAFE.includes(image.type) ? image.type : 'application/octet-stream'); reply.header('Content-Type', FILE_TYPE_BROWSERSAFE.includes(image.type) ? image.type : 'application/octet-stream');
reply.header('Content-Length', getSizeFromIImage(image) ?? file.size ?? undefined); reply.header('Content-Length', getSizeFromIImage(image) ?? undefined);
reply.header('Cache-Control', 'max-age=31536000, immutable'); reply.header('Cache-Control', 'max-age=31536000, immutable');
reply.header('Content-Disposition', reply.header('Content-Disposition',
contentDisposition( contentDisposition(
@ -403,7 +403,7 @@ export class FileServerService {
} }
reply.header('Content-Type', image.type); reply.header('Content-Type', image.type);
reply.header('Content-Length', getSizeFromIImage(image) ?? file.size ?? undefined); reply.header('Content-Length', getSizeFromIImage(image) ?? undefined);
reply.header('Cache-Control', 'max-age=31536000, immutable'); reply.header('Cache-Control', 'max-age=31536000, immutable');
reply.header('Content-Disposition', reply.header('Content-Disposition',
contentDisposition( contentDisposition(