© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
6 replies
언이

Worker response is not cached by default?

I have setup workers so that it gets an image from R2 and respond with it. I tried setting Cache-Control: max-age=86400. Response had it, but didn't contain any Cf-Cache-Status. Browser doesn't try to cache it either. Other similar APIs properly caches it with over 10x faster server response time. Do I have to explicitly manage cache in worker code?

btw what is a proper way to set cache headers? using itty-router
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

cannot access cached pages created by worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
Worker throws "Unable to delete cached response." exception
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Worker response not streaming
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
15mo ago
Slow worker response
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
15mo ago