← back to Stars of Design
smoke: assert Last-Modified on /sitemap.{xml,txt}
4817b2643fdd32ff7a02f3b4089063efff1a93fc · 2026-05-13 11:14:41 -0700 · Steve Abrams
Files touched
Diff
commit 4817b2643fdd32ff7a02f3b4089063efff1a93fc
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 13 11:14:41 2026 -0700
smoke: assert Last-Modified on /sitemap.{xml,txt}
---
test/smoke.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/smoke.js b/test/smoke.js
index 463b34c..1dfb204 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -162,9 +162,11 @@ function check(name, cond, hint = '') {
check('sitemap: urlset', /<urlset/.test(r.body));
check('sitemap: has /privacy', /<loc>[^<]*\/privacy<\/loc>/.test(r.body));
check('sitemap: has /terms', /<loc>[^<]*\/terms<\/loc>/.test(r.body));
+ check('sitemap: Last-Modified', /GMT$/.test(r.headers['last-modified'] || ''));
r = await fetch('/sitemap.txt');
check('sitemap.txt: 200', r.status === 200);
check('sitemap.txt: has http URL', /^https?:\/\//.test(r.body));
+ check('sitemap.txt: Last-Modified', /GMT$/.test(r.headers['last-modified'] || ''));
r = await fetch('/robots.txt');
check('robots: 200', r.status === 200);
r = await fetch('/favicon.ico');
← 6650847 smoke: home perf budget <1500ms
·
back to Stars of Design
·
smoke: cover /healthz + HEAD method + harness opts.method ea921b6 →