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 { ...@@ -25,7 +25,7 @@ export default {
start_url: '/news' start_url: '/news'
}, },
devModules: [ buildModules: [
'@nuxtjs/pwa', '@nuxtjs/pwa',
'@nuxtjs/axios' '@nuxtjs/axios'
], ],
...@@ -38,6 +38,13 @@ export default { ...@@ -38,6 +38,13 @@ export default {
'~/plugins/filters' '~/plugins/filters'
], ],
serverMiddleware: [
(req, res, next) => {
res.setHeader('Cache-Control', 's-maxage=30, stale-while-revalidate')
next()
}
],
render: { render: {
http2: { http2: {
push: true 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