Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 5732:d0ce06cb9be1
Upstream: fixed cache revalidation with SSI.
Previous code in ngx_http_upstream_send_response() used last modified time
from r->headers_out.last_modified_time after the header filter chain was
already called. At this point, last_modified_time may be already cleared,
e.g., with SSI, resulting in incorrect last modified time stored in a
cache file. Fix is to introduce u->headers_in.last_modified_time instead.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 26 Jun 2014 02:20:09 +0400 |
parents | efc84a5723b3 |
children | d09b689911ac |
comparison
equal
deleted
inserted
replaced
5731:02674312be45 | 5732:d0ce06cb9be1 |
---|---|
244 | 244 |
245 #if (NGX_HTTP_GZIP) | 245 #if (NGX_HTTP_GZIP) |
246 ngx_table_elt_t *content_encoding; | 246 ngx_table_elt_t *content_encoding; |
247 #endif | 247 #endif |
248 | 248 |
249 off_t content_length_n; | |
250 | |
251 ngx_array_t cache_control; | 249 ngx_array_t cache_control; |
252 ngx_array_t cookies; | 250 ngx_array_t cookies; |
251 | |
252 off_t content_length_n; | |
253 time_t last_modified_time; | |
253 | 254 |
254 unsigned connection_close:1; | 255 unsigned connection_close:1; |
255 unsigned chunked:1; | 256 unsigned chunked:1; |
256 } ngx_http_upstream_headers_in_t; | 257 } ngx_http_upstream_headers_in_t; |
257 | 258 |