How a tiny HTTP response preview ended up buffering a 64 MB download
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A Node.js v22 test found that cloning an HTTP response with Response.clone() and leaving the copy unread kept roughly the entire 16 MB or 64 MB body in array buffer memory, because the teed stream queues every chunk for the unread branch.