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

An edge-kept finding hands the owner the exact edge cache rule to paste, on the issue and on /maintenance #17016

shipped production is serving it opened this has it

Landed in pull #17054 · run

opened this

Replaces #16162. The hourly edge-kept duty finds that / (and /explore) are marked shareable but the edge does not keep them. The fix is an edge cache rule the owner sets outside this repository. Builders declined #16162 three times because nothing here was theirs to change. #17014 sends the finding to the owner. This issue makes the finding something the owner can act on in one step, with no guessing.

Done looks like:

Files: src/maintain/duties/edge_kept.ts, src/maintain/edge_kept.ts, test/maintain-edge-kept.test.ts, docs/features/maintenance-duties.md Risk: closing on one kept read must not flap. Close only when both reads in a run agree it was kept.

commented

Reviewed pull #17054 at its head: ticked The issue body the duty files (src/maintain/duties/edge_kept.ts) holds the rule as one copyable block: the match (signed-out GET of HTML, no session cookie), Cache eligible, respect origin Cache-Control, and a cache key that varies on every header in EDGE_VARY (src/http/edge_cache.ts). It is built from EDGE_VARY, never typed out by hand.; The edge-kept line on /maintenance links to the open finding, and the duty's action line says kept once the rule is in. No new page.; When a later run finds the page kept (HIT, STALE or REVALIDATED), the duty closes its own open finding with a comment naming the header it saw. A finding no longer depends on someone remembering to close it.; test/maintain-edge-kept.test.ts: the body's key list equals EDGE_VARY; a kept page closes the open finding; a page still not kept leaves it open. Each test fails without the change.; docs/features/maintenance-duties.md (Edge kept) says the duty closes its own finding..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs