comparison 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
comparison
equal deleted inserted replaced
3525:eb156d98a9fa 3526:62a4fd1e6e2c
619 619
620 c = r->cache; 620 c = r->cache;
621 621
622 if (c == NULL) { 622 if (c == NULL) {
623 623
624 if (u->conf->no_cache) {
625 rc = ngx_http_cache(r, u->conf->no_cache);
626 if (rc != NGX_OK) {
627 return rc;
628 }
629 }
630
624 if (!(r->method & u->conf->cache_methods)) { 631 if (!(r->method & u->conf->cache_methods)) {
625 return NGX_DECLINED; 632 return NGX_DECLINED;
626 } 633 }
627 634
628 if (r->method & NGX_HTTP_HEAD) { 635 if (r->method & NGX_HTTP_HEAD) {