Workers memory limit

The 128 MB memory limit is per-isolate. If a large amount of traffic is hitting the same colo, multiple requests may land in the same isolate. As far as I am aware the memory limit cannot be raised.

The recommended way to do handle large objects is to stream the object from R2 to the client. If you are returning HTML, you can use HTMLRewriter to rewrite the HTML and avoid buffering the entire response in memory.

You should also be aware the websocket message size limit is 1 MiB. Resources larger than that will have to be chunked.