Add Cache-Control header to api responses

This commit is contained in:
Maxime-J 2025-04-12 15:21:51 +02:00
parent e1a5a610bb
commit edaa30f7b1
2 changed files with 10 additions and 5 deletions

View file

@ -9,6 +9,7 @@ const apiHeaders = {
'Access-Control-Allow-Headers': '*',
'Access-Control-Allow-Methods': 'GET, DELETE, POST, PUT',
'Access-Control-Max-Age': process.env.CORS_MAX_AGE || '86400',
'Cache-Control': 'no-cache',
};
const trackerHeaders = {