HTTP proxy directives

proxy_cache_lock_age directive

HTTP, server, location context. Default: 5s. Introduced: 1.7.8. Allows an additional origin fill if the previous one takes too long.

Formal Syntax & Structure

nginx syntaxnginx
proxy_cache_lock_age time;

Parameters & Attributes

NameTypeDescription
timedurationAfter this much time filling an entry, permit another request to the origin.

Working Example

Example Snippetnginx
proxy_cache_lock_age 2s;
Nginx Reference