Skip to content

Commit 8fe08c7

Browse files
Update src/content/partials/workers/request-dot-clone-warning.mdx
Co-authored-by: daisyfaithauma <[email protected]>
1 parent 694500c commit 8fe08c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/partials/workers/request-dot-clone-warning.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
The body of a [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) can only be accessed once. If you previously used `request.formData()` in the same request, you may encounter a TypeError when attempting to access `request.body`.
88

99
To avoid errors, create a clone of the Request object with `request.clone()` for each subsequent attempt to access a Request's body.
10-
Keep in mind that Workers have a [memory limit of 128 MB per Worker](https://developers.cloudflare.com/workers/platform/limits#worker-limits) and loading particularly large files into a Worker's memory multiple times may reach this limit. To ensure memory usage does not reach this limit, consider using [Streams](https://developers.cloudflare.com/workers/runtime-apis/streams/).
10+
Keep in mind that Workers have a [memory limit of 128 MB per Worker](/workers/platform/limits#worker-limits) and loading particularly large files into a Worker's memory multiple times may reach this limit. To ensure memory usage does not reach this limit, consider using [Streams](/workers/runtime-apis/streams/).
1111

1212
:::

0 commit comments

Comments
 (0)