Control request and response body buffering in Configuration Rules
Cloudflare Configuration Rules now support two new settings to control HTTP request and response body buffering with Standard, Full, and None modes. This allows you to optimize performance by disabling buffering where security inspection is not needed, while maintaining WAF and Bot Management capabilities on critical paths.
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. |
Caution
Setting body buffering to None may break security functionality that requires body inspection, including the Web Application Firewall (WAF) and Bot Management. Ensure that any paths where you disable buffering do not require security inspection.
API example
{
"action": "set_config",
"action_parameters": {
"request_body_buffering": "standard",
"response_body_buffering": "none"
}
}
For more information, refer to Configuration Rules.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.