[object Object]

← back to build-pages

smoke: gzip /p/butlr + Vary: Accept-Encoding (compression regression guard)

cb504864720c6cf4abba924625ed820e7b766946 · 2026-05-13 13:27:27 -0700 · SteveStudio2

Files touched

Diff

commit cb504864720c6cf4abba924625ed820e7b766946
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 13:27:27 2026 -0700

    smoke: gzip /p/butlr + Vary: Accept-Encoding (compression regression guard)
---
 test/smoke.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/smoke.js b/test/smoke.js
index bcb5262..2f61f56 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -120,6 +120,11 @@ function check(name, cond, hint = '') {
   check('sitemap: has /p/butlr',   /<loc>[^<]*\/p\/butlr<\/loc>/.test(r.body));
   check('sitemap: Last-Modified',  /GMT$/.test(r.headers['last-modified'] || ''));
 
+  // 10. gzip negotiated + Vary: Accept-Encoding (cache safety)
+  r = await fetch('/p/butlr', { headers: { 'Accept-Encoding': 'gzip' } });
+  check('gzip /p/butlr',           (r.headers['content-encoding'] || '') === 'gzip');
+  check('vary Accept-Encoding',    (r.headers['vary'] || '').toLowerCase().includes('accept-encoding'));
+
   // Report
   if (process.argv.includes('--json')) {
     console.log(JSON.stringify({ base: BASE, pass, fail, total: pass + fail, checks, as_of: new Date().toISOString() }));

← 2218b5e seo: WebSite + ItemList JSON-LD on home + 2 smoke  ·  back to build-pages  ·  feed: Atom 1.0 per project (/p/:slug/feed.atom) + autodiscov c196cfd →