diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2013-11-18 20:48:22 +0400 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-11-18 20:48:22 +0400 |
| commit | 1ac2693a33bb65c6b0d777584ad8024aa743ee88 (patch) | |
| tree | 3cf6108d0daf072726805e4379fde73af0818201 /src/http/ngx_http_upstream.h | |
| parent | df2fc6a9df06dcf334000a66c1173413883e1aba (diff) | |
| download | nginx-1ac2693a33bb65c6b0d777584ad8024aa743ee88.tar.gz nginx-1ac2693a33bb65c6b0d777584ad8024aa743ee88.tar.bz2 | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_upstream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h index fd4e36b1f..469988eed 100644 --- a/src/http/ngx_http_upstream.h +++ b/src/http/ngx_http_upstream.h @@ -178,6 +178,8 @@ typedef struct { ngx_flag_t cache_lock; ngx_msec_t cache_lock_timeout; + ngx_flag_t cache_revalidate; + ngx_array_t *cache_valid; ngx_array_t *cache_bypass; ngx_array_t *no_cache; |
