send 7 day Cache-Control header
This commit is contained in:
parent
4dfecce966
commit
02071a43c3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user