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.
Was this page helpful?