mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
fix r2664: ..._cache_valid did not work for stale responses
This commit is contained in:
parent
c1713aadf5
commit
db8f150044
@ -581,6 +581,7 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u)
|
||||
|
||||
} else if (rc == NGX_HTTP_CACHE_STALE) {
|
||||
|
||||
c->valid_sec = 0;
|
||||
u->stale_cache = 1;
|
||||
u->buffer.start = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user