scgi_cache_min_uses

Syntax: scgi_cache_min_uses number; Default: scgi_cache_min_uses 1; Context: http, server, location Sets the number of requests after which the response will be cached.

scgi_cache_methods

Syntax: scgi_cache_methods GET | HEAD | POST ...; Default: scgi_cache_methods GET HEAD; Context: http, server, location If the client request method is listed in this directive then the response will be cached. “GET” and “HEAD” methods are always added to the list, though it is recommended to specify them explicitly. See also the scgi_no_cache directive.

scgi_cache_max_range_offset

Syntax: scgi_cache_max_range_offset number; Default: — Context: http, server, location This directive appeared in version 1.11.6. Sets an offset in bytes for byte-range requests. If the range is beyond the offset, the range request will be passed to the SCGI server and the response will not be cached.

scgi_cache_lock_timeout

Syntax: scgi_cache_lock_timeout time; Default: scgi_cache_lock_timeout 5s; Context: http, server, location This directive appeared in version 1.1.12. Sets a timeout for scgi_cache_lock. When the time expires, the request will be passed to the SCGI server, however, the response will not be cached. Before 1.7.8, the response could be cached.

scgi_cache_lock_age

Syntax: scgi_cache_lock_age time; Default: scgi_cache_lock_age 5s; Context: http, server, location This directive appeared in version 1.7.8. If the last request passed to the SCGI server for populating a new cache element has not completed for the specified time, one more request may be passed to the SCGI server.

scgi_cache_lock

Syntax: scgi_cache_lock on | off; Default: scgi_cache_lock off; Context: http, server, location This directive appeared in version 1.1.12. When enabled, only one request at a time will be allowed to populate a new cache element identified according to the scgi_cache_key directive by passing a request to an SCGI server. Other requests of the same cache element will either wait for a response to appear in the cache or the cache lock for this element to be released, up to the time se

scgi_cache_key

Syntax: scgi_cache_key string; Default: — Context: http, server, location Defines a key for caching, for example scgi_cache_key localhost:9000$request_uri;

scgi_cache_bypass

Syntax: scgi_cache_bypass string ...; Default: — Context: http, server, location Defines conditions under which the response will not be taken from a cache. If at least one value of the string parameters is not empty and is not equal to “0” then the response will not be taken from the cache: scgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; scgi_cache_bypass $http_pragma $http_authorization; Can be used along with the scgi_no_cache directive.

scgi_cache

Syntax: scgi_cache zone | off; Default: scgi_cache off; Context: http, server, location Defines a shared memory zone used for caching. The same zone can be used in several places. Parameter value can contain variables (1.7.9). The off parameter disables caching inherited from the previous configuration level.

scgi_busy_buffers_size

Syntax: scgi_busy_buffers_size size; Default: scgi_busy_buffers_size 8k|16k; Context: http, server, location When buffering of responses from the SCGI server is enabled, limits the total size of buffers that can be busy sending a response to the client while the response is not yet fully read. In the meantime, the rest of the buffers can be used for reading the response and, if needed, buffering part of the response to a temporary file. By default, size is limited by the size of tw