HTTP proxy directives

proxy_cache_lock_timeout directive

HTTP, server, location context. Default: 5s. Introduced: 1.1.12. Limits waiting; since 1.7.8 a forwarded waiter does not store its response.

Formal Syntax & Structure

nginx syntaxnginx
proxy_cache_lock_timeout time;

Parameters & Attributes

NameTypeDescription
timedurationLimit waiting for the cache fill; after timeout the forwarded response is not stored on current versions.

Working Example

Example Snippetnginx
proxy_cache_lock_timeout 3s;
Nginx Reference