From: Igor Sysoev Date: Fri, 3 Apr 2009 15:47:45 +0000 (+0000) Subject: fix r2664: ..._cache_valid did not work for stale responses X-Git-Tag: release-0.7.48~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=db8f1500440ade6cc4ed30df9f4986dcdf9a740e;p=nginx.git fix r2664: ..._cache_valid did not work for stale responses --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index be1ea10f4..f7d1072b2 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -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;