# HG changeset patch # User Igor Sysoev # Date 1239374921 0 # Node ID baa91bf5a63b641156ce0beb0917eef971462a7e # Parent d3cffe32b9302966de42a19482c6aac93f1020c1 do not call ngx_http_file_cache_free() if a response is not cacheable diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2749,7 +2749,7 @@ ngx_http_upstream_finalize_request(ngx_h #if (NGX_HTTP_CACHE) - if (r->cache) { + if (u->cacheable) { time_t valid; ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,