]> git.kaiwu.me - nginx.git/commit
Fixed cache bypass caching of non-cacheable replies (ticket #21).
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 5 Oct 2011 10:14:21 +0000 (10:14 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 5 Oct 2011 10:14:21 +0000 (10:14 +0000)
commit20139ff13adddd0fdf497a086615dac95ced6e8d
treee11b03118265d376eaa8167d9050171f61ba485a
parent3aba7688559b27374d7dfc262d5aef7bbaf6d98d
Fixed cache bypass caching of non-cacheable replies (ticket #21).

If cache was bypassed with proxy_cache_bypass, cache-controlling headers
(Cache-Control, Expires) wasn't considered and response was cached even
if it was actually non-cacheable.

Patch by John Ferlito.
src/http/ngx_http_upstream.c