Luke Childs
2 years ago
3 changed files with 20 additions and 10 deletions
@ -1,4 +1,8 @@ |
|||||
module.exports = (req, res) => res.render('about.html', { |
module.exports = (req, res) => { |
||||
|
const ONE_MONTH_IN_SECONDS = 60 * 60 * 24 * 30; |
||||
|
res.setHeader('Cache-Control', `s-maxage=${ONE_MONTH_IN_SECONDS}, stale-while-revalidate`); |
||||
|
res.render('about.html', { |
||||
bodyClass: 'about', |
bodyClass: 'about', |
||||
pageTitle: 'About' |
pageTitle: 'About' |
||||
}); |
}) |
||||
|
}; |
||||
|
Loading…
Reference in new issue