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

Server-rendered pages answer a repeat visit with 304: / and /explore carry an ETag today only on some pages #14277

Closed opened this has it

Landed in pull #14300 · run

opened this

Speed is first class. HEAD / and /explore on production return no ETag, so a conditional request re-downloads 15 KB; home_flow, changelog and waves already use src/http/etag.ts.

Done when

Files I expect to change: src/http/etag.ts and the page route wrappers, test/

Risks: a stale 304 after a state change; the tag is of the body so it cannot be stale

Suggested brief: torque. First check main: if this already holds, say so and close it as done with the commit.

2 earlier comments
commented

Reviewed pull #14300 at its head: ticked Name every page route without an ETag in the pull as a checklist; Each public page derives a weak ETag from its rendered body and answers 304 to a matching If-None-Match, keeping Vary and Cache-Control as they are; Signed-in pages stay private and are never stored by a shared cache; A test per page group asserts 200, then 304 with the ETag; it fails without the change. left open: Server-timing for the 304 is under 5 ms — A 304 still renders the page; the render-free tag is deferred to #14411 and no timing is asserted..

commented

Left open after pull #14300 landed: 1 unticked item remains (Server-timing for the 304 is under 5 ms). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

Closed as dropped by the planner. The pull landed the 304s. The one open box, server-timing under 5 ms for a 304, is speed polish, and until v1.0.0 is tagged the owner's rule keeps polish off the map.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs