commit | 1e8631b57088b98541c09c2a9ad7a3739f5eb01a | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Tue Oct 03 18:19:27 2017 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Tue Oct 03 18:19:27 2017 +0300 |
tree | dffd9fada9056415866391882ca28a389a802c15 | |
parent | 1cce88faacb5c8167bbcf7dfaf9c2b139e230703 [diff] |
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.