Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
adding 304 header
Browse files Browse the repository at this point in the history
  • Loading branch information
schme16 committed Mar 27, 2018
1 parent 4528028 commit 2c4e5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -72,7 +72,7 @@ function cdnFunc (req, res) {
res.setHeader('Content-Type', mime.lookup(t))
res.setHeader("Cache-Control", "public, max-age=2592000");
res.setHeader("Expires", new Date(Date.now() + 2592000000).toUTCString());
res.statusCode = 304
//res.statusCode = 304

newRes.pipe(res)
}).on('error', function(err) {
Expand Down

0 comments on commit 2c4e5d9

Please sign in to comment.