© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3mo ago•
2 replies
codehimanshu

Purging cache in workers

✅SolvedWorkers
I have a use case where caching is needed based on time of day, for example during 11:00 to 17:00, requests shouldn’t be cached. To implement the same, workers seemed like a feasible solution. Problem is in case I need to purge cache because of some reason, there is no support to purge by prefix, but only exact match of cache key.
My cache key consists of url with multiple query params which are very dynamic.
Any suggestions which fit in my use case?
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

purging fetch cache that uses a custom cache key
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Workers Cache vs Pages Cache
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
Workers cdn cache
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2w ago