fix: add back cache-control headers
but keep them super short, mostly to reduce traffic via external cache infra
This commit is contained in:
parent
91a6935a91
commit
c1da2d5552
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue