diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-04-03 15:47:45 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-03 15:47:45 +0000 |
| commit | db8f1500440ade6cc4ed30df9f4986dcdf9a740e (patch) | |
| tree | 1bc32cbf00b1a9e2ad7b1758a3f2d9b5db96d6aa /src | |
| parent | c1713aadf5be9097c2ed8f60de630a70945cc140 (diff) | |
| download | nginx-db8f1500440ade6cc4ed30df9f4986dcdf9a740e.tar.gz nginx-db8f1500440ade6cc4ed30df9f4986dcdf9a740e.tar.bz2 | |
fix r2664: ..._cache_valid did not work for stale responses
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
