From ec7af37214b520db30edd07577a52fda346a009f Mon Sep 17 00:00:00 2001 From: OpenClaw Bot Date: Tue, 24 Feb 2026 10:02:10 +0000 Subject: [PATCH] fix: add Cache-Control header to landing page --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 8992fec..eed56b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -257,6 +257,12 @@ app.use((req, res, next) => { next(); }); +// Landing page (explicit route to set Cache-Control header) +app.get("/", (_req, res) => { + res.setHeader('Cache-Control', 'public, max-age=3600'); + res.sendFile(path.join(__dirname, "../public/index.html")); +}); + app.use(express.static(path.join(__dirname, "../public"), { etag: true, cacheControl: false,