[object Object]

← back to AsSeenInMovies

asim /healthz Cache-Control: no-store (liveness should always be fresh)

e67d0fef9e3589ffa99c6ec2e073ef09ed82cdd5 · 2026-05-13 07:32:39 -0700 · SteveStudio2

Files touched

Diff

commit e67d0fef9e3589ffa99c6ec2e073ef09ed82cdd5
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 07:32:39 2026 -0700

    asim /healthz Cache-Control: no-store (liveness should always be fresh)
---
 server.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/server.js b/server.js
index f406d8c..4043c50 100644
--- a/server.js
+++ b/server.js
@@ -102,7 +102,11 @@ app.get('/api', (_req, res) => {
 });
 
 // k8s-style alias — many infra tools probe /healthz by convention.
-app.get('/healthz', (_req, res) => res.json({ ok: true, ts: Date.now() }));
+// no-store so monitors always see a fresh liveness signal.
+app.get('/healthz', (_req, res) => {
+  res.setHeader('Cache-Control', 'no-store');
+  res.json({ ok: true, ts: Date.now() });
+});
 
 app.get('/api/health', async (_req, res) => {
   try {

← 0898544 asseeninmovies: GET /api/movies/random + /api/people/random  ·  back to AsSeenInMovies  ·  asim /spotted/queue Cache-Control: no-store, must-revalidate 4cd8acf →