[PATCH] Upstream: fix $upstream_cache_last_modified variable

Maxim Dounin mdounin at mdounin.ru
Wed Oct 8 13:41:53 UTC 2014


Hello!

On Wed, Oct 01, 2014 at 05:20:06PM -0700, Piotr Sikora wrote:

> # HG changeset patch
> # User Piotr Sikora <piotr at cloudflare.com>
> # Date 1412203733 25200
> #      Wed Oct 01 15:48:53 2014 -0700
> # Node ID dbf6364ab44fcc6b5d1fbbe64c162135b18e9209
> # Parent  a215d9021f137b9e2d4f69c37c7f992a2bef12c6
> 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.

Committed, thanks.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list