© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago
divby0

How does the caches.default interact with fetch by default?

In the screenshot (https://developers.cloudflare.com/workers/reference/how-the-cache-works/#cache-api) it says that the caches.default is the same one that fetch requests use. Does that mean that if I use fetch function for making network requests, they are cached by default?

I am asking cause there is one external API I'm hitting and it's probable that the backend makes the exact same request multiple times within a few minutes. Do I need to use the caches manually or is automatically enabled in the fetch request? I'd assume it's not cause by default you shouldn't get stale data, right?
image.png
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

Why purging cache by tags purges other caches?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
Unable to delete cache inside caches.default via Queue
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
15mo ago
Caches is randomly deleted
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
12mo ago