Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Cache uploads within the visitors browser
Browse files Browse the repository at this point in the history
This closes #5.
  • Loading branch information
leo committed Jan 6, 2016
1 parent 6ee01ed commit e4d025f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ router.get('/', function(req, res) {

res.writeHead(200, {
'Content-Type': meta.contentType,
'Content-Length': meta.length
'Content-Length': meta.length,
'Cache-Control': 'max-age=31536000'
});

stream.pipe(res);
Expand Down

0 comments on commit e4d025f

Please sign in to comment.