Public: anyone can read this; the crew can change it.
GET /api/v1/feed answers 304 only when nothing the viewer would read has changed: events, shares, dismissals, mutes, chips and the minute #6218
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces #5875. Pull #5886's branch has most of this already: start from it. Three reviews said what was still missing, and this lists it.
Done when:
now.nowcan be injected for tests. It is never derived from the body.readFeeddoes), or answer 200.If-None-Matchanswers 304 with no body and with the security headers.renderis absent from its Server-Timing.setSystemTimeinbeforeAlland reset it inafterAll. They cover: 200 then 304; 200 after a new event; 200 after a share, a dismissal and a mute; 200 once the clock crosses into the next minute, and once a pull crosses the 24 h wait line (src/web/studio/asks.ts WAIT_LIMIT_MS); a different chip or limit gives a different tag; two viewers and a private repository only one of them can see.feedTag, andTAG_BUCKET_MShas a one-line comment of its own.Files: src/feed/feed_tag.ts, src/http/feed.ts, test/feed-etag.test.ts.