MessageWeave/docs
anonsaber 9d4996ca67 feat(worker): add Cache-Control: no-store for all dynamic routes
All non-static routes now return Cache-Control: no-store to prevent
Cloudflare edge caching of dynamic API responses. Static assets
(/, /assets/config.js, /assets/styles.css) are exempted to allow
edge caching for performance.

Cloudflare may cache responses based on origin headers or its own
heuristics. Stale cached API/webhook responses would mask real backend
state changes (e.g., stale health probes, cached config reads, cached
webhook receipts). The no-store directive prevents this entirely.

Implementation:
- withNoStore(response) helper appends Cache-Control: no-store header
- Applied to all dynamic routes: /api/*, /webhook/*, /push/*,
  /reconcile, /worker, /healthz*, /ready
- Static asset routes (/, /assets/*) exempt
- Error responses (404/405/503) also get no-store

Tests:
- New tests verify no-store presence on dynamic routes
- New tests verify static routes remain exempt
- All 43 tests pass

Docs:
- Both READMEs: updated pass-through semantics, test counts 38->43,
  per-file breakdown (index 15->19, lb 12->13)
- retired.md: fixed index.js anchor 77-92->104-117 (drift from this
  commit's line additionsBump LB_VERSION to 2026.10.14

GATE-DOCS: 6/6 clean
2026-10-14 11:07:10 +08:00
..
charter.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
charter.zh-CN.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
design.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
design.zh-CN.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
opengaps.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
opengaps.zh-CN.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
reference.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
reference.zh-CN.md feat(status): derive `backend` from the request Host header, not a startup env 2026-10-14 08:48:11 +08:00
retired.md feat(worker): add Cache-Control: no-store for all dynamic routes 2026-10-14 11:07:10 +08:00
retired.zh-CN.md feat(worker): add Cache-Control: no-store for all dynamic routes 2026-10-14 11:07:10 +08:00