You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(poll): removes ETag caching and fixes event pagination
ETag removal: GitHub's server-side cache returns stale 304s for 10+
minutes, preventing background change detection. Removes If-None-Match
headers and relies on _lastEventId numeric comparison against full 200
responses instead (60 req/hr, 1.2% of rate limit budget).
_lastEventId fix: uses max ID via reduce instead of assuming
allEvents[0] is newest, preventing redundant targeted refreshes when
events arrive out of order.
Pagination: fetches up to 3 pages when page 1 is full, with early-exit
optimization that skips deeper pages when the current page contains
events at or below the _lastEventId threshold (events are newest-first).
Adds 7 pagination tests covering full-page trigger, partial-page stop,
3-page cap, early-exit, straddling threshold, error handling, and
empty-page termination.
0 commit comments