© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•10mo ago
Elliot Hesp

Bypassing cache from worker fetch

My worker is routed via a
https://example.domain.com
https://example.domain.com
route, and internally makes sub-requests via
fetch
fetch
to
example2.domain.com
example2.domain.com
(origin)

Both are proxied behind cloudflare (orange cloud). I need to completely bypass cloudflare CDN, and return headers as they are returned by the origin server.

The issue is, no matter what I do, set
cf
cf
properties on
fetch
fetch
, setting
Vary
Vary
header on origin, trying to send everthing as a POST, Cloudlfare always mangles my header, most importantly stripping the ETAG from the origin.

If I set a page rule on the dashboard to
example2.domain.com
example2.domain.com
, would this have any effect inside of the worker?
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

Retrieving Fetch Worker Information from Tail Worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Worker to Worker fetch
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Cache from worker not working properly
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Fetch() cache behaviour
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago