© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
4 replies
DaveJ

Purge cache on Pages workers

I am using fetch and the Cloudflare cache API to cache some content. The problem is that I'm unable to figure out how I can purge that cache. I've tried two things:
1. The Cloudflare UI (Caching -> Configuration -> Purge Cache -> Custom Purge_
2. Posting the URLs to Cloudflare API (https://api.cloudflare.com/client/v4/zones/ZONE_ID/purge_cache)

Neither seems to invalidate the cache for me. The URL that I'm trying to invalidate is a GET request to the GitHub API.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Cache Purge
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago
Automatic Cache Purge
Cloudflare DevelopersCDCloudflare Developers / pages-help
14mo ago
does cloudflare pages cache workers?
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago