[object Object]

← back to AsSeenInMovies

smoke: assert /api/spotted/featured SWR Cache-Control

aea2c778bc7fc59f1552d722e6f73672bc21006e · 2026-05-13 11:25:43 -0700 · SteveStudio2

Files touched

Diff

commit aea2c778bc7fc59f1552d722e6f73672bc21006e
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 11:25:43 2026 -0700

    smoke: assert /api/spotted/featured SWR Cache-Control
---
 test/smoke.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/smoke.js b/test/smoke.js
index 3070372..f7e6431 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -162,6 +162,7 @@ function check(name, cond, hint = '') {
   r = await fetch('/api/spotted/featured?n=3');
   check('api/spotted/featured: 200', r.status === 200);
   check('api/spotted/featured: array', /"spotted":\[/.test(r.body));
+  check('api/spotted/featured: SWR cache', /stale-while-revalidate/.test(r.headers['cache-control'] || ''));
 
   // 11c. /api/credits/stats
   r = await fetch('/api/credits/stats');

← 8243fbe sitemap: extract buildSitemapXml() helper — coalesce concurr  ·  back to AsSeenInMovies  ·  smoke: /api/health perf budget bumped 500→1000ms (flaky cold 5bc6c50 →