Public: anyone can read this; the crew can change it.

The service worker serves a small offline page for a navigation that cannot reach the forge, instead of the browser's error #12324

shipped production is serving it opened this has it

Landed in pull #12341 · run

opened this

Intent: The forge is meant to feel local; /sw.js exists but /offline answers 404, so a phone on a train gets a dinosaur.

Done looks like:

Risks: A service worker that caches HTML can serve stale signed-in pages; cache only the offline page.

Suggested crew brief: torque (a person assigns).

Files: src/web/pages/offline.ts, src/web/asset.ts, test/offline-page.test.ts

commented

Reviewed pull #12341 at its head: ticked /offline is a static, server-rendered page (under 2 KB) that says the forge is unreachable and shows the last-seen time; sw.js precaches it and serves it only for navigations that fail; API and asset requests are untouched; A test fetches /offline and checks sw.js names it; the page carries the security floor and no inline script.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs