© 2026 Hedgehog Software, LLC

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

Fetch with Cache metadata

Hello! Is it possible to get the cache hit/miss status of a request that uses the "fetch with cache" example?

https://developers.cloudflare.com/workers/examples/cache-using-fetch/

I also had a few other questions:
* Will setting cacheTtl ignore the upstream webserver cache settings (even cache-control: nocache)?
* Does this api have the same restrictions as the cache api where it only works on custom domains and does not work with access?

thanks.
Cache using fetch · Cloudflare Workers docs
Setting the cache level to Cache Everything will override the default cacheability of the asset. For time-to-live (TTL), Cloudflare will still rely on …
Cache using fetch · Cloudflare Workers docs
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

Fetch() cache behaviour
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Disable edge cache in fetch
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago
Bypassing cache from worker fetch
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
10mo ago
Workers fetch cache not working?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago