Skip to content

fix(web): bound read-API CDN staleness at an hour#4

Merged
connortsui20 merged 1 commit into
developfrom
ct/read-api-stale-window
Jul 7, 2026
Merged

fix(web): bound read-API CDN staleness at an hour#4
connortsui20 merged 1 commit into
developfrom
ct/read-api-stale-window

Conversation

@connortsui20

Copy link
Copy Markdown
Member

Read-API responses are edge-cached per URL with stale-while-revalidate=86400, and the edge cache is tag-blind — /api/revalidate flushes the server-side Data Cache but cannot purge CDN entries. That was invisible while data only appended (a stale serve was seconds out of date), but the 2026-07-07 historical backfill rewrote fineweb/appian history and charts kept showing pre-rewrite counts (e.g. "latest 100 of 108" against 2,091 real commits) until each URL's day-long stale window lapsed. This shrinks the window to an hour, bounding post-rewrite skew at the cost of at most one extra function invocation per URL per hour on a low-traffic site. The 5-minute fresh window is unchanged.

🤖 Generated with Claude Code

The edge cache is URL-keyed and tag-blind: /api/revalidate flushes the
server-side Data Cache but cannot purge already-cached CDN responses,
which the day-scale stale-while-revalidate window let serve pre-rewrite
data for up to 24 hours after the 2026-07-07 historical backfill. An
hour bounds that skew at the cost of at most one extra function
invocation per URL per hour.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Vercel preview for d05cac2ae59df0eeda727bc612216b3674182541: https://benchmarks-website-e9zl0arxn-vortex-data.vercel.app

@connortsui20 connortsui20 marked this pull request as ready for review July 7, 2026 17:08
@connortsui20 connortsui20 merged commit 021dbea into develop Jul 7, 2026
5 of 6 checks passed
@connortsui20 connortsui20 deleted the ct/read-api-stale-window branch July 7, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant