maxage->max-age in Cache-Control header
This commit is contained in:
parent
169ec4bfde
commit
82e8db0128
@ -47,7 +47,7 @@ class Server {
|
|||||||
res.writeHead(200, {
|
res.writeHead(200, {
|
||||||
'Content-Type': 'image/png',
|
'Content-Type': 'image/png',
|
||||||
'Content-Length': buf.length,
|
'Content-Length': buf.length,
|
||||||
'Cache-Control': 'maxage=604800' // Cache hashed favicon for 7 days
|
'Cache-Control': 'max-age=604800' // Cache hashed favicon for 7 days
|
||||||
}).end(buf)
|
}).end(buf)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user