Clearing workers cache?
Is there a way to purge the entire cache for a worker from the CF dashboard itself? Or whats a good way to purge.
1 Reply
hi Lukas 👋
If you are on an Enterprise plan, you could add a cache tag per Worker (https://developers.cloudflare.com/workers/examples/cache-api/) and then use it to Purge by Tag (https://developers.cloudflare.com/cache/how-to/purge-cache/#purge-using-cache-tags).
Otherwise, the only option that is left to purge these cached assets that used Workers Cache API is to use the option 'Purge Everything' in your zone (assuming you are using a custom domain as opposed to a *.workers.dev endpoint).