Skip to content

The open-source app everyone uses to manage agents at work

fix: disable HTTP caching on run log endpoints (#3724)

Jannes Stubbemann7463479fc829
diff --git a/server/src/routes/agents.ts b/server/src/routes/agents.ts
index fb72a6d7ba..f5e06dd62a 100644
--- a/server/src/routes/agents.ts
+++ b/server/src/routes/agents.ts
@@ -2493,6 +2493,7 @@ export function agentRoutes(db: Db) {
limitBytes: Number.isFinite(limitBytes) ? limitBytes : 256000,
});
+ res.set("Cache-Control", "no-cache, no-store");
res.json(result);
});
@@ -2527,6 +2528,7 @@ export function agentRoutes(db: Db) {
limitBytes: Number.isFinite(limitBytes) ? limitBytes : 256000,
});
+ res.set("Cache-Control", "no-cache, no-store");
res.json(result);
});