Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 3083:ffe8bfb38184
clean cache updating state if a response has uncacheable code or
cache prohibitive headers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Sep 2009 09:57:38 +0000 |
parents | d22afd261e72 |
children | 5ddc9458e4bb |
comparison
equal
deleted
inserted
replaced
3082:5e8bf3e983d2 | 3083:ffe8bfb38184 |
---|---|
2111 } | 2111 } |
2112 | 2112 |
2113 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, | 2113 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, |
2114 "http cacheable: %d", u->cacheable); | 2114 "http cacheable: %d", u->cacheable); |
2115 | 2115 |
2116 if (u->cacheable == 0 && r->cache) { | |
2117 ngx_http_file_cache_free(r, u->pipe->temp_file); | |
2118 } | |
2119 | |
2116 #endif | 2120 #endif |
2117 | 2121 |
2118 p = u->pipe; | 2122 p = u->pipe; |
2119 | 2123 |
2120 p->output_filter = (ngx_event_pipe_output_filter_pt) ngx_http_output_filter; | 2124 p->output_filter = (ngx_event_pipe_output_filter_pt) ngx_http_output_filter; |