aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_variables.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2017-10-03 18:19:27 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2017-10-03 18:19:27 +0300
commitd07d598c28205d30907d011f5d3a3d81a929787c (patch)
treedffd9fada9056415866391882ca28a389a802c15 /src/stream/ngx_stream_variables.c
parent105dd42bd79f0d499c9ed1f6f973adb6011abaa0 (diff)
downloadnginx-d07d598c28205d30907d011f5d3a3d81a929787c.tar.gz
nginx-d07d598c28205d30907d011f5d3a3d81a929787c.zip
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.
Diffstat (limited to 'src/stream/ngx_stream_variables.c')
0 files changed, 0 insertions, 0 deletions