Browse Source

Merge pull request #2428 from weseek/fix-last-modified-header

Fix Last-Modified header for attachments
Yuki Takei 5 years ago
parent
commit
a3719d8207
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/routes/attachment.js

+ 1 - 1
src/server/routes/attachment.js

@@ -215,7 +215,7 @@ module.exports = function(crowi, app) {
   function setHeaderToRes(res, attachment, forceDownload) {
     res.set({
       ETag: `Attachment-${attachment._id}`,
-      'Last-Modified': attachment.createdAt,
+      'Last-Modified': attachment.createdAt.toUTCString(),
     });
 
     // download