Skip to content

feat(downloads): cache SSR download pages in Workers - #383

Draft
jpenilla wants to merge 1 commit into
feat/downloads-live-updates-stackfrom
feat/downloads-workers-cache
Draft

feat(downloads): cache SSR download pages in Workers#383
jpenilla wants to merge 1 commit into
feat/downloads-live-updates-stackfrom
feat/downloads-workers-cache

Conversation

@jpenilla

Copy link
Copy Markdown
Member

Route only download-page requests through a cache-enabled Worker entrypoint,
leaving the default entrypoint uncached so static assets remain free.

Tag cached pages by project and purge their tag after webhook and scheduled
refreshes. The live-update coordinator and WebSocket client also limit the
impact of a page rendered with an older KV snapshot during invalidation: it
will receive the current snapshot without waiting for the next page render.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
papermc-website d18d801 Aug 16 2026, 09:26 PM

@jpenilla
jpenilla marked this pull request as draft August 16, 2026 21:23
@jpenilla
jpenilla force-pushed the feat/downloads-workers-cache branch from 3978cbb to 18634b9 Compare August 16, 2026 21:24
@jpenilla jpenilla changed the title perf(downloads): cache SSR download pages in Workers feat(downloads): cache SSR download pages in Workers Aug 16, 2026
Route only download-page requests through a cache-enabled Worker entrypoint,
leaving the default entrypoint uncached so static assets remain free.

Tag cached pages by project and purge their tag after webhook and scheduled
refreshes. The live-update coordinator and WebSocket client also limit the
impact of a page rendered with an older KV snapshot during invalidation: it
will receive the current snapshot without waiting for the next page render.
@jpenilla
jpenilla force-pushed the feat/downloads-workers-cache branch from 18634b9 to d18d801 Compare August 16, 2026 21:25
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