Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 5441:43ccaf8e8728
Upstream: cache revalidation with conditional requests.
The following new directives are introduced: proxy_cache_revalidate,
fastcgi_cache_revalidate, scgi_cache_revalidate, uwsgi_cache_revalidate.
Default is off. When set to on, they enable cache revalidation using
conditional requests with If-Modified-Since for expired cache items.
As of now, no attempts are made to merge headers given in a 304 response
during cache revalidation with headers previously stored in a cache item.
Headers in a 304 response are only used to calculate new validity time
of a cache item.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 18 Nov 2013 20:48:22 +0400 |
parents | 05c53652e7b4 |
children | 07dd5bd222ac |
comparison
equal
deleted
inserted
replaced
5440:cbb9a6c7493c | 5441:43ccaf8e8728 |
---|---|
176 ngx_uint_t cache_methods; | 176 ngx_uint_t cache_methods; |
177 | 177 |
178 ngx_flag_t cache_lock; | 178 ngx_flag_t cache_lock; |
179 ngx_msec_t cache_lock_timeout; | 179 ngx_msec_t cache_lock_timeout; |
180 | 180 |
181 ngx_flag_t cache_revalidate; | |
182 | |
181 ngx_array_t *cache_valid; | 183 ngx_array_t *cache_valid; |
182 ngx_array_t *cache_bypass; | 184 ngx_array_t *cache_bypass; |
183 ngx_array_t *no_cache; | 185 ngx_array_t *no_cache; |
184 #endif | 186 #endif |
185 | 187 |