Skip to content

Commit

Permalink
Set Last-Modified header.
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Jan 8, 2018
1 parent 1775b51 commit 9943e86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lambda-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports.handler = function(event, context, callback) {
headers: {
'Content-Type': 'image/' + info.format,
'Cache-Control': 'max-age=31536000',
'Last-Modified': (new Date()).toUTCString(),
},
body: new Buffer(data).toString('base64'),
isBase64Encoded: true,
Expand Down

0 comments on commit 9943e86

Please sign in to comment.