caelum0x e731c0be84 fix(flags): the flags read is kept 15 s in the Workers edge cache, not only announced by headers (PY2.1)
A Worker's response is not edge-cached from Cache-Control alone. The client
read now uses the Workers Cache API (caches.default) for URL-keyed reads:
a hit is answered without a database read, and the stored answer expires on
its 15 s max-age, so a flip still reaches every app within 60 s. Header-keyed
reads are never cached. Absent in `next dev`, where every read goes through.

Tests: bridge 25/25 (new: a URL-keyed read served from the cache, header-keyed
reads not cached), console 109/109 with the bundle build, contracts 6/6, SDK
7/7, tsc clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 02:01:12 +03:00
..