comparison src/http/ngx_http_upstream.c @ 5730:c8bdde1c8c97

Upstream: no need to clear r->headers_out.last_modified_time. Clearing of the r->headers_out.last_modified_time field if a response isn't cacheable in ngx_http_upstream_send_response() was introduced in 3b6afa999c2f, the commit to enable not modified filter for cacheable responses. It doesn't make sense though, as at this point header was already sent, and not modified filter was already executed. Therefore, the line was removed to simplify code.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 26 Jun 2014 02:19:58 +0400
parents 63d7d69d0fe4
children 02674312be45
comparison
equal deleted inserted replaced
5729:bb3d74fc4aea 5730:c8bdde1c8c97
2498 2498
2499 ngx_http_file_cache_set_header(r, u->buffer.start); 2499 ngx_http_file_cache_set_header(r, u->buffer.start);
2500 2500
2501 } else { 2501 } else {
2502 u->cacheable = 0; 2502 u->cacheable = 0;
2503 r->headers_out.last_modified_time = -1;
2504 } 2503 }
2505 } 2504 }
2506 2505
2507 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, 2506 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
2508 "http cacheable: %d", u->cacheable); 2507 "http cacheable: %d", u->cacheable);