From 15e5b05c7f2160cfe72f086fe693c3cc33a499ed Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Thu, 26 Mar 2026 18:56:27 +0000 Subject: [PATCH] don't cache index --- apps/server/src/integrations/static/static.module.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/server/src/integrations/static/static.module.ts b/apps/server/src/integrations/static/static.module.ts index 52c3c160..f0b7e831 100644 --- a/apps/server/src/integrations/static/static.module.ts +++ b/apps/server/src/integrations/static/static.module.ts @@ -71,7 +71,10 @@ export class StaticModule implements OnModuleInit { app.get(RENDER_PATH, (req: any, res: any) => { const stream = fs.createReadStream(indexFilePath); - res.type('text/html').send(stream); + res + .header('Cache-Control', 'no-cache, no-store, must-revalidate') + .type('text/html') + .send(stream); }); } }