]> git.kaiwu.me - nginx.git/commit
Upstream: cache revalidation with conditional requests.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 18 Nov 2013 16:48:22 +0000 (20:48 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 18 Nov 2013 16:48:22 +0000 (20:48 +0400)
commit1ac2693a33bb65c6b0d777584ad8024aa743ee88
tree3cf6108d0daf072726805e4379fde73af0818201
parentdf2fc6a9df06dcf334000a66c1173413883e1aba
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.
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h