Skip to content

Commit

Permalink
Edite Cache-Control headrs in app.ts (#701)
Browse files Browse the repository at this point in the history
- Set to no-cache, no-store, must-revalidate
  • Loading branch information
hawkishpolicy authored Oct 24, 2024
1 parent 98306bc commit 28cf4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ app.use(

//Middleware to set Cache-Control headers
app.use((req, res, next) => {
res.setHeader('Cache-Control', 'private, must-revalidate, max-age=3600');
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
next();
});

Expand Down

0 comments on commit 28cf4cb

Please sign in to comment.