fix: add back cache-control headers

but keep them super short, mostly to reduce traffic via external cache infra
This commit is contained in:
WebStreamr 2025-05-15 14:52:02 +00:00
parent 91a6935a91
commit c1da2d5552
No known key found for this signature in database

View file

@ -61,6 +61,10 @@ addon.use((_req: Request, res: Response, next: NextFunction) => {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Headers', '*');
if (process.env['NODE_ENV'] === 'production') {
res.setHeader('Cache-Control', 'max-age=10, public');
}
next();
});