diff --git a/src/content/docs/workers/platform/limits.mdx b/src/content/docs/workers/platform/limits.mdx index 66e78e8ee00a245..a536402118463d0 100644 --- a/src/content/docs/workers/platform/limits.mdx +++ b/src/content/docs/workers/platform/limits.mdx @@ -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)1 | 100 | 500 | | Number of [Cron Triggers](/workers/configuration/cron-triggers/)
per account | 5 | 250 | +| Number of [Static Asset](#static-assets) files | 20000 | 20000 | +| Individual [Static Asset](#static-assets) file size | 25 MiB | 25 MiB | 1 If you are running into limits, your project may be a good fit for [Workers for Platforms](/cloudflare-for-platforms/workers-for-platforms/). @@ -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. diff --git a/src/content/docs/workers/static-assets/billing-and-limitations.mdx b/src/content/docs/workers/static-assets/billing-and-limitations.mdx index 21d308b8b6d4cc5..35af5601882ca55 100644 --- a/src/content/docs/workers/static-assets/billing-and-limitations.mdx +++ b/src/content/docs/workers/static-assets/billing-and-limitations.mdx @@ -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 diff --git a/src/content/partials/workers/redirects.mdx b/src/content/partials/workers/redirects.mdx index 05644e94e0e096e..57813aa9e9ef9af 100644 --- a/src/content/partials/workers/redirects.mdx +++ b/src/content/partials/workers/redirects.mdx @@ -135,7 +135,7 @@ For example, if you have added `/about/faq/* /about/faqs 200` to your `_redirect ## Surpass `_redirects` limits -A `_redirects` 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 `_redirects` 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