Commit 262e1ba0 authored by Sébastien Chopin's avatar Sébastien Chopin

chore: upgrade and use cache control

parent 73c2433c
......@@ -25,7 +25,7 @@ export default {
start_url: '/news'
},
devModules: [
buildModules: [
'@nuxtjs/pwa',
'@nuxtjs/axios'
],
......@@ -38,6 +38,13 @@ export default {
'~/plugins/filters'
],
serverMiddleware: [
(req, res, next) => {
res.setHeader('Cache-Control', 's-maxage=30, stale-while-revalidate')
next()
}
],
render: {
http2: {
push: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment