Mercurial > hg > nginx
diff src/os/unix/ngx_freebsd_sendfile_chain.c @ 7117:dbd77a638eb7
Cache: fixed caching of intercepted errors (ticket #1382).
When caching intercepted errors, previous behaviour was to use
proxy_cache_valid times specified, regardless of various cache control
headers present in the response. Fix is to check u->cacheable and
use u->cache->valid_sec as set by various cache control response headers,
similar to how we do this in the normal caching code path.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 03 Oct 2017 18:19:27 +0300 |
parents | 7cc2d3a96ea3 |
children | 400a3412b1e3 |