Skip to content

Commit

Permalink
馃敡 Change cache header
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Mar 22, 2019
1 parent 470d50e commit 189fcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/ssrapp.js
Expand Up @@ -20,6 +20,6 @@ const nuxt = new Nuxt(config);

module.exports = functions.https.onRequest((req, res) => {
res.removeHeader('X-Powered-By');
res.set('Cache-Control', 'public, max-age=600, s-maxage=600, stale-if-error=604800, stale-while-revalidate=604800');
res.set('Cache-Control', 'public, max-age=600, must-revalidate');
return nuxt.render(req, res);
});

0 comments on commit 189fcbe

Please sign in to comment.