© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•12mo ago•
8 replies
wesbos

Cache Rules in front of worker

Hello - I have an app deployed to a worker, and I'm setting cache headers on my responses.

I'm not able to get cloudflare to cache any of my responses, it seems to always bypass and run the worker. I have a cache rule on to make everything eligible for caching, and trace shows me the rule hits, but I never see the cf-cache-status header - rsc.wesbos.com is an example page.

Is it not possible to use a worker as an origin and cache it's outputs with a header?
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

Using cache in worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Does cache rules works with workers?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
Can we implement an additional cache layer using Snippets, in front of Workers?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3w ago
Cache worker result
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago