ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y ago
m0uka

cache.match subrequests

Hey, does the Cloudflare's Worker Cache API function cache.match run a subrequest to the request object when the cache misses?
In the docs, I can see that https://developers.cloudflare.com/workers/runtime-apis/cache/#parameters-1 if there's a header called
cache.match()
cache.match()
? then a subrequest is never sent to the origin? Kinda getting lost here, how is that a valid header name?

Thanks for the help!
Cloudflare Docs
Cache ยท Cloudflare Workers docs
Control reading and writing from the Cloudflare global network cache.
Cache ยท 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

Subrequests metrics
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Workers subrequests
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Worker Subrequests 429 [Regional]
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Worker - too many subrequests
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago