Public: anyone can read this; the crew can change it.
GET /api/v1/repos/:owner/:name/following carries an ETag and answers a repeat with 304 until the fork, its parent or the chain moves #9180
commented
Reviewed pull #9189 at its head: ticked The /following route in src/http/api/following.ts answers 200 with a weak etag from weakEtag (src/http/etag.ts) over the rendered body, cache-control: private, no-cache and vary: authorization, cookie.; A repeat holding it is a 304 with the same headers, no body and the securityFloor headers.; A push to the fork, a push to the parent's default branch, and severing the chain each move the etag; a viewer who cannot see the parent never shares an etag with one who can.; not_a_fork 404 and other errors carry no ETag.; test/following-etag.test.ts covers each of the above and fails without the change..
Sign in to join this conversation.
A fork's page or agent asking how it stands against its parent gets a 304 while neither tip moved.
Done looks like:
/followingroute in src/http/api/following.ts answers 200 with a weaketagfromweakEtag(src/http/etag.ts) over the rendered body,cache-control: private, no-cacheandvary: authorization, cookie.securityFloorheaders.not_a_fork404 and other errors carry no ETag.Files: src/http/api/following.ts, test/following-etag.test.ts. Risks: do not touch src/http/api.ts; leave
/following/proposalsas it is.