Permalink
Browse files

use last modified header

  • Loading branch information...
1 parent 9ba4033 commit 3ba998bae66c420687dc53ed99da7b52b0723df5 @tobiaslins committed Apr 29, 2017
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/index.js
View
@@ -13,10 +13,7 @@ module.exports = (req, res) => {
pathname = Math.random().toString()
} else {
res.setHeader('Cache-Control', 'max-age=2592000, public')
- res.setHeader(
- 'ETag',
- crypto.createHash('md5').update(pathname).digest('hex')
- )
+ res.setHeader('Last-Modified', 'Mon, 03 Jan 2011 17:45:57 GMT')
}
if (query.type === 'svg' || svgExt.test(pathname)) {
res.setHeader('Content-Type', 'image/svg+xml')

0 comments on commit 3ba998b

Please sign in to comment.