HTTP directives
proxy_ignore_headers directive (HTTP)
Stop Nginx acting on selected origin response fields, not merely forwarding them. Cache-related overrides can accidentally expose personalized content. Context: http, server, location. Documented default: none. Version: Introduction not established. OSS documentation; verify build and version. The example limits origin control over buffering; it does not ignore cookie or cache privacy signals. Partial configuration for an isolated synthetic lab; not a production policy.
Formal Syntax & Structure
nginx syntaxnginx
proxy_ignore_headers field ...;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| field | one or more supported response field names | X-Accel-Redirect, X-Accel-Expires, X-Accel-Limit-Rate, X-Accel-Buffering, X-Accel-Charset, Expires, Cache-Control, Set-Cookie or Vary. |
Working Example
Example Snippetnginx
proxy_ignore_headers X-Accel-Buffering;