© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
2 replies
Chang

workers site caching and DDoS

I am kind of new to CF. I have a workers site that renders static HTML for any subdomain using the route *.mydomain.com. It works fine as expected.

Now I am unable to figure out how to enforce caching on the generated HTML so that the Worker won't be hit every time until the cached HTML is purged explicitly or CF removes the cached page.

I am more worried about getting DDoS-ed. I am implementing a simple static site builder using CF Worker site as the origin and using Cloudflare SaaS for custom domains.

I understand I can upgrade to Business/Enterprise and have better DDoS options. But I am wondering how are small companies dealing with unexpected large unexpected Workers bill.
Edit: Small typo
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

Workers DDoS protection
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago
Workers Caching
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago
R2 caching vs workers caching
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Caching for Workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago