Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/content/docs/workers/platform/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import { Render, WranglerConfig } from "~/components";
| [Worker startup time](#worker-startup-time) | 400 ms | 400 ms |
| [Number of Workers](#number-of-workers)<sup>1</sup> | 100 | 500 |
| Number of [Cron Triggers](/workers/configuration/cron-triggers/)<br/>per account | 5 | 250 |
| Number of [Static Asset](#static-assets) files | 20000 | 20000 |
| Individual [Static Asset](#static-assets) file size | 25 MiB | 25 MiB |

<sup>1</sup> If you are running into limits, your project may be a good fit for
[Workers for Platforms](/cloudflare-for-platforms/workers-for-platforms/).
Expand Down Expand Up @@ -361,6 +363,22 @@ If your Worker is on a Bundled plan, your limits are the same as the Workers Pai

---

## Static Assets

### Files

There is a 20,000 file count limit per [Worker version](/workers/configuration/versions-and-deployments/), and a 25 MiB individual file size limit. This matches the [limits in Cloudflare Pages](/pages/platform/limits/) today.

### Headers

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.

### Redirects

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.

---

## Related resources

Review other developer platform resource limits.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,7 @@ There is no additional cost for storing Assets.

## Limitations

The following limitations apply for Workers with static assets:

- There is a 20,000 file count limit per [Worker version](/workers/configuration/versions-and-deployments/), and a 25 MiB individual file size limit. This matches the [limits in Cloudflare Pages](/pages/platform/limits/) today.

### Headers

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.

### Redirects

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.
See the [Platform Limits](/workers/platform/limits/#static-assets)

## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion src/content/partials/workers/redirects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ For example, if you have added `/about/faq/* /about/faqs 200` to your `_redirect

## Surpass `_redirects` limits

A <a href={props.product === 'workers' ? '/workers/static-assets/billing-and-limitations/#redirects' : '/pages/platform/limits/#redirects'}>`_redirects`</a> file has a maximum of 2,000 static redirects and 100 dynamic redirects, for a combined total of 2,100 redirects. Use [Bulk Redirects](/rules/url-forwarding/bulk-redirects/) to handle redirects that surpasses the 2,100 redirect rules limit of `_redirects`.
A <a href={props.product === 'workers' ? '/workers/platform/limits/#redirects' : '/pages/platform/limits/#redirects'}>`_redirects`</a> file has a maximum of 2,000 static redirects and 100 dynamic redirects, for a combined total of 2,100 redirects. Use [Bulk Redirects](/rules/url-forwarding/bulk-redirects/) to handle redirects that surpasses the 2,100 redirect rules limit of `_redirects`.

:::note

Expand Down
Loading