Billing and Limitations
Requests to a project with static assets can either return static assets or invoke the Worker script, depending on if the request matches a static asset or not.
Requests to static assets are free and unlimited. Requests to the Worker script (for example, in the case of SSR content) are billed according to Workers pricing. Refer to pricing for an example.
There is no additional cost for storing Assets.
The following limitations apply for Workers with static assets:
- There is a 20,000 file count limit per Worker version, and a 25 MiB individual file size limit. This matches the limits in Cloudflare Pages today.
A _headers
file may contain up to 100 rules and each line may contain up to 2,000 characters. The entire line, including spacing, header name, and value, counts towards this limit.
A _redirects
file may contain up to 2,000 static redirects and 100 dynamic redirects, for a combined total of 2,100 redirects. Each redirect declaration has a 1,000-character limit.
assets.bucket is a required field
— if you see this error, you need to update Wrangler to at least3.78.10
or later.bucket
is not a required field.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark