]> git.kaiwu.me - nginx.git/commit
Cache: hash of Vary headers now stored in cache.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 27 Oct 2014 18:13:58 +0000 (21:13 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 27 Oct 2014 18:13:58 +0000 (21:13 +0300)
commit1332e76b20a6a1e871904525d42b17dcaed81eec
treee29436a0150547c91645468f4617a4e252e83c7b
parentfc785b12a0fea9ff3d014ad27f37ac73cbe056e8
Cache: hash of Vary headers now stored in cache.

To cache responses with Vary, we now calculate hash of headers listed
in Vary, and return the response from cache only if new request headers
match.

As of now, only one variant of the same resource can be stored in cache.
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c
src/http/ngx_http_upstream.c