HTTP proxy directives
proxy_cache_background_update directive
HTTP, server, location context. Default: off. Introduced: 1.11.10. Refreshes an expired entry in a subrequest when stale updating is permitted.
Formal Syntax & Structure
nginx syntaxnginx
proxy_cache_background_update on | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| state | on | off | Refresh an expired entry in a background subrequest while returning stale content; stale updating must be allowed. |
Working Example
Example Snippetnginx
proxy_cache_background_update on;