Skip to content
Permalink
Browse files

fix #5: Set Cache-Control headers to 1hr

  • Loading branch information
martinklepsch committed Oct 20, 2018
1 parent c7773af commit e57c24f00b7b94cee807f12409d8e0f286f909db
Showing with 1 addition and 0 deletions.
  1. +1 −0 server/index.js
@@ -107,6 +107,7 @@ module.exports = (req, res) => {
if (!svg.length) return 'No icon found for ' + name

res.setHeader('Content-Type', 'image/svg+xml')
res.setHeader('Cache-Control', 'public, max-age=3600')
res.end(doctype + svg)
}

0 comments on commit e57c24f

Please sign in to comment.
You can’t perform that action at this time.