]> git.kaiwu.me - nginx.git/commit
Upstream: no need to clear r->headers_out.last_modified_time.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 25 Jun 2014 22:19:58 +0000 (02:19 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 25 Jun 2014 22:19:58 +0000 (02:19 +0400)
commit4e275cc73a402e7508309a6612c774d21dffc88e
treebfba8b337cf759b89fad9f9f80ca3cc89d1fde86
parent05dfc054f0d90ae68476272c62be6e67aab21e20
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.
src/http/ngx_http_upstream.c