Rules – Control request and response body buffering in Configuration Rules

You can now control how Cloudflare buffers HTTP request and response bodies using two new settings in Configuration Rules.

Request body buffering

Controls how Cloudflare buffers HTTP request bodies before forwarding them to your origin server:

Mode Behavior
Standard (default) Cloudflare can inspect a prefix of the request body for enabled functionality such as WAF and Bot Management.
Full Buffers the entire request body before sending to origin.
None No buffering — the request body streams directly to origin without inspection.

Response body buffering

Controls how Cloudflare buffers HTTP response bodies before forwarding them to the client:

Mode Behavior
Standard (default) Cloudflare can inspect a prefix of the response body for enabled functionality.
None No buffering — the response body streams directly to the client without inspection.

API example

{
"action": "set_config",
"action_parameters": {
"request_body_buffering": "standard",
"response_body_buffering": "none"
}
}

For more information, refer to Configuration Rules.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *