mirror of
https://github.com/nginx/nginx.git
synced 2024-12-05 06:19:01 +08:00
clean cache updating state if a response has uncacheable code or
cache prohibitive headers
This commit is contained in:
parent
7d71c80b16
commit
8013a83067
@ -2113,6 +2113,10 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
|
||||
"http cacheable: %d", u->cacheable);
|
||||
|
||||
if (u->cacheable == 0 && r->cache) {
|
||||
ngx_http_file_cache_free(r, u->pipe->temp_file);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
p = u->pipe;
|
||||
|
Loading…
Reference in New Issue
Block a user