Add Cache-Control header to /

This commit is contained in:
Michael Jackson 2016-08-29 17:33:23 -07:00
parent 86c79d985e
commit 505cd9ab8a
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ export const sendHomePage = (req, res, next) => {
if (error) {
next(error)
} else {
res.set('Cache-Control', 'public, max-age=60')
res.send(
DOCTYPE + renderToStaticMarkup(<HomePage {...props} stats={stats}/>)
)