Add Cache-Control header to /
This commit is contained in:
parent
86c79d985e
commit
505cd9ab8a
|
@ -39,6 +39,8 @@ export const sendHomePage = (req, res, next) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
next(error)
|
next(error)
|
||||||
} else {
|
} else {
|
||||||
|
res.set('Cache-Control', 'public, max-age=60')
|
||||||
|
|
||||||
res.send(
|
res.send(
|
||||||
DOCTYPE + renderToStaticMarkup(<HomePage {...props} stats={stats}/>)
|
DOCTYPE + renderToStaticMarkup(<HomePage {...props} stats={stats}/>)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue