summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-05-24 11:01:05 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-05-24 11:01:05 +0000
commit9b2763a245e51032734089672a8a74611a288fae (patch)
tree7ee770dbac28d73819b6f3374e90f060c7828016 /src/http/ngx_http_upstream.c
parentfbb262533f8fec6dd2e05f9954225f3077391291 (diff)
downloadnginx-9b2763a245e51032734089672a8a74611a288fae.tar.gz
nginx-9b2763a245e51032734089672a8a74611a288fae.tar.bz2
proxy_no_cache and fastcgi_no_cache
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index eaf54812f..4226198ba 100644
--- 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_t *r, ngx_http_upstream_t *u)
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;
}