Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 3526:62a4fd1e6e2c
proxy_no_cache and fastcgi_no_cache
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 24 May 2010 11:01:05 +0000 |
parents | a4ee4a075ac5 |
children | 84905c7b2aa7 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -621,6 +621,13 @@ ngx_http_upstream_cache(ngx_http_request if (c == NULL) { + if (u->conf->no_cache) { + rc = ngx_http_cache(r, u->conf->no_cache); + if (rc != NGX_OK) { + return rc; + } + } + if (!(r->method & u->conf->cache_methods)) { return NGX_DECLINED; }