Skip to content

src: use workers tiered cache#971

Open
flakey5 wants to merge 1 commit into
mainfrom
flakey5/20260711/cache
Open

src: use workers tiered cache#971
flakey5 wants to merge 1 commit into
mainfrom
flakey5/20260711/cache

Conversation

@flakey5

@flakey5 flakey5 commented Jul 12, 2026

Copy link
Copy Markdown
Member

No description provided.

@flakey5 flakey5 requested a review from a team as a code owner July 12, 2026 04:50
@cursor

cursor Bot commented Jul 12, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Caching behavior for dist/download/docs/api traffic changes at the edge; incorrect cache headers or tags could serve stale assets until purge, though existing cache-control rules remain in place.

Overview
Replaces in-worker GET response caching (CacheMiddleware + CACHING env) with Cloudflare Workers tiered cache enabled in wrangler.jsonc for staging and prod.

GET routes now hit R2Middleware directly (same as HEAD), and successful responses add Cache-Tag values (release-worker:file, :directory, :origin) so edge cache can be targeted for purges. Architecture docs are updated to show caching at Cloudflare and to drop the cache middleware from the worker flow.

Reviewed by Cursor Bugbot for commit ed95d04. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 03ccd64. Configure here.

Comment thread wrangler.jsonc
Comment thread wrangler.jsonc
Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
@flakey5 flakey5 force-pushed the flakey5/20260711/cache branch from 03ccd64 to ed95d04 Compare July 12, 2026 04:59
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.

2 participants