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) {
|
||||
next(error)
|
||||
} else {
|
||||
res.set('Cache-Control', 'public, max-age=60')
|
||||
|
||||
res.send(
|
||||
DOCTYPE + renderToStaticMarkup(<HomePage {...props} stats={stats}/>)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user