Skip to content

Invalidate Cloudflare cache after Pages deploys - #5

Merged
astrovm merged 1 commit into
masterfrom
ci/cloudflare-cache-invalidation
Oct 3, 2026
Merged

astrovm merged 1 commit into
masterfrom
ci/cloudflare-cache-invalidation

Conversation

@astrovm

@astrovm astrovm commented Oct 3, 2026

Copy link
Copy Markdown
Member

Marks this site's Cloudflare cache stale after each GitHub Pages deploy, using the new invalidate_cache API. Cloudflare revalidates with GitHub, so unchanged files are reused and stale copies are served if GitHub is down.

This lets the zone use a long edge cache without serving old pages after a deploy.

  • Uses the CLOUDFLARE_CACHE_TOKEN secret (already set).
  • Checked with actionlint and a live invalidate_cache call.

🤖 Generated with Claude Code

Marks this site's cached copies stale after each deploy, so a long
Cloudflare edge cache can be used without serving stale pages.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@astrovm
astrovm merged commit 72b3ea6 into master Oct 3, 2026
5 checks passed
@astrovm
astrovm deleted the ci/cloudflare-cache-invalidation branch October 3, 2026 18:18
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