syntax: scgi_cache_bypass variable1 variable2...
default: none
context: http, server, location
version: >= 0.8.46
Specifies in what cases a request will bypass a cached response and pass the request to upstream.
scgi_cache_bypass $cookie_nocache $arg_nocache$arg_comment; scgi_cache_bypass $http_pragma $http_authorization;
The expression is false if it is equal to the empty string or "0". For instance, in the above example, the request will always go through to the back-end if the cookie "nocache" is set in the request.
Note that the response from the back-end is still eligible for caching. Thus one way of refreshing an item in the cache is sending a request with a header you pick yourself, e.g. "My-Secret-Header: 1", then having a scgi_no_cache line like:
scgi_no_cache $http_my_secret_header;