]> git.kaiwu.me - nginx.git/commit
Upstream: fix $upstream_cache_last_modified variable.
authorPiotr Sikora <piotr@cloudflare.com>
Wed, 1 Oct 2014 22:48:53 +0000 (15:48 -0700)
committerPiotr Sikora <piotr@cloudflare.com>
Wed, 1 Oct 2014 22:48:53 +0000 (15:48 -0700)
commit4a2fba2d46d8d315a3dd3792d9f9c2d13e17a794
treee21018a56714d6882648ce4a12b0bb0209360cd9
parent840b347bb24bea09f9824891239929cdce84e47b
Upstream: fix $upstream_cache_last_modified variable.

Due to the u->headers_in.last_modified_time not being correctly initialized,
this variable was evaluated to "Thu, 01 Jan 1970 00:00:00 GMT" for responses
cached without the "Last-Modified" header which resulted in subsequent proxy
requests being sent with "If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT"
header.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
src/http/ngx_http_upstream.c