Files
Aegis/backend
kitos 71141d9901
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
fix(api): add no-cache middleware to prevent Cloudflare from caching API responses
Root cause: Cloudflare CDN was caching empty/error API responses from
/api/v1/metrics/* endpoints during the backend startup window (502 errors).
Subsequent requests were served from Cloudflare edge cache, never reaching
nginx or the backend, so the dashboard always showed empty metrics data.

NoCacheAPIMiddleware adds Cache-Control: no-store + Pragma: no-cache to
all /api/ responses so Cloudflare and browsers never cache them.
2026-06-02 10:12:13 +02:00
..