← back to AsSeenInMovies
asim /api/health Cache-Control: no-store (timestamped liveness/status, always fresh). 67/67.
f7d2a51278a82c1ea5ee7f5531ce046c97d0ba04 · 2026-05-13 07:58:46 -0700 · SteveStudio2
Files touched
Diff
commit f7d2a51278a82c1ea5ee7f5531ce046c97d0ba04
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 07:58:46 2026 -0700
asim /api/health Cache-Control: no-store (timestamped liveness/status, always fresh). 67/67.
---
server.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/server.js b/server.js
index 536665a..8afea8d 100644
--- a/server.js
+++ b/server.js
@@ -113,6 +113,7 @@ app.get('/api/health', async (_req, res) => {
// Cheap liveness: SELECT 1 only. The count(*) counts come from the
// home cache (60s SWR), so /api/health stays sub-10ms regardless of
// table size. Was 500ms+ doing full count(*) on 290k rows.
+ res.setHeader('Cache-Control', 'no-store');
const r = await pool.query('SELECT 1 AS ok');
const stats = (_homeCache && _homeCache.data && _homeCache.data.stats) || null;
res.json({
← e88f11a asim smoke +2 /sitemap.txt checks. 67/67.
·
back to AsSeenInMovies
·
asseeninmovies: GET /api/credits/stats — aggregate counts on 08a8678 →