send 7 day Cache-Control header

This commit is contained in:
Nick Krecklow 2020-05-08 04:51:42 -05:00
parent 4dfecce966
commit 02071a43c3
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94

@ -46,7 +46,8 @@ class Server {
res.writeHead(200, {
'Content-Type': 'image/png',
'Content-Length': buf.length
'Content-Length': buf.length,
'Cache-Control': 'maxage=604800' // Cache hashed favicon for 7 days
}).end(buf)
return