[object Object]

← back to AsSeenInMovies

smoke: assert /api/version Cache-Control no-store

db4fdf7ecc095d3c70dafa3e0c7084d1b35d6aab · 2026-05-13 10:18:34 -0700 · SteveStudio2

Files touched

Diff

commit db4fdf7ecc095d3c70dafa3e0c7084d1b35d6aab
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 10:18:34 2026 -0700

    smoke: assert /api/version Cache-Control no-store
---
 test/smoke.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/smoke.js b/test/smoke.js
index 0be75c3..2f22a89 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -123,6 +123,7 @@ function check(name, cond, hint = '') {
   check('api/version: name',       /"name":"asseeninmovies"/.test(r.body));
   check('api/version: git sha',    /"git":"[a-f0-9]{4,}/.test(r.body));
   check('api/version: node',       /"node":"v\d+/.test(r.body));
+  check('api/version: no-store',   (r.headers['cache-control'] || '').includes('no-store'));
 
   // 11. /api/spotted/stats
   r = await fetch('/api/spotted/stats');

← e3ecee0 api/spotted/featured: N (default 6, max 24) verified spotted  ·  back to AsSeenInMovies  ·  smoke: assert /api/version git !== 'unknown' (catches missin c79cbbc →