From 4da2567ab21ff16ebc068326e07e5190d6a66a2b Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Mon, 12 May 2025 15:29:24 +0000 Subject: [PATCH] fix: remove cache-control headers There is some flakyness going on from time to time and we don't want to cache that. Good thing is that internal fetches are cached already. --- src/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index a9e518e..bc457ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,10 +51,6 @@ 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=3600, public'); - } - next(); });