Skip to content

Commit

Permalink
Ensure HTML is not cached
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiemh committed Jan 27, 2024
1 parent 6b3c9df commit d31e3e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/src/plugins/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module.exports = (req, res, next) => {

res.removeHeader('x-powered-by');

res.set('Cache-Control', 'no-store, must-revalidate, max-age=0');

next();

};

0 comments on commit d31e3e2

Please sign in to comment.