From 4fcfba2618d8122492674236b1051ac886fef811 Mon Sep 17 00:00:00 2001 From: ItsMalma Date: Thu, 18 Dec 2025 14:23:48 +0700 Subject: [PATCH] disable cache for static --- src/modules/static/static.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/static/static.controller.ts b/src/modules/static/static.controller.ts index 536ede4..1b3ba6f 100644 --- a/src/modules/static/static.controller.ts +++ b/src/modules/static/static.controller.ts @@ -24,6 +24,9 @@ export class StaticController extends Controller { .status(200) .header("Cross-Origin-Resource-Policy", "cross-origin") .header("Content-Type", file.mimeType) + .header("Cache-Control", "no-cache, no-store, must-revalidate") + .header("Pragma", "no-cache") + .header("Expires", "0") .send(file.buffer); }