© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•6mo ago•
1 reply
Khafra

Disable edge cache in fetch

I am attempting to make an api call to an external service that also appears to be using Cloudflare. Locally it works fine and I get an uncached response, but when using workers, it's returning a response with
last-modified
last-modified
header of August 8.

How do I disable this cache? I have tried EVERYTHING:

cache: 'no-store'
cache: 'no-store'
in RequestInit
/the/api?t=${Date.now()}
/the/api?t=${Date.now()}
query param
cf: { cacheTtl: 0, cacheEverything: false }
cf: { cacheTtl: 0, cacheEverything: false }
in RequestInit
headers: { 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Pragma': 'no-cache' 
headers: { 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Pragma': 'no-cache' 
} in RequestInit
image.png
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

Fetch() cache behaviour
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Fetch with Cache metadata
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Image Resize Disable Cache
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
How to cache fetch result in workers ?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago