© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3mo ago
zapalona_swieczka

Why purging cache by tags purges other caches?

in worker I request https://httpbin.io/get?time=${new Date().toLocaleString()}
then add headers Cache-Control max-age=60; s-maxage=60
it's cached, second request to worker returns HIT.. but when I call purging cache tag "offers":
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/purge_cache
-H 'Content-Type: application/json' \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY" \
-d '{
"tags": [
"offers"
]
}'
next request to worker returns cf-cache-status DYNAMIC

I checked httpbin is not setting Cache-tag, I'm not setting that Cache-tag.. What is going on?
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 cache in workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
Implementing Worker Tag Cache and Purging by Tag
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
13mo ago
purging fetch cache that uses a custom cache key
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Unable to delete cache inside caches.default via Queue
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
15mo ago