Updating r->cache in ngx_http_upstream_process_cache_control()

2024-07-26 Thread Maksim Yevmenkin
Hello, I would like to understand the rationale for updating r->cache->valid_sec (and other fields in r->cache) in ngx_http_upstream_process_cache_control(). It appears that ngx_http_upstream_process_cache_control() can be called (via ngx_http_proxy_process_header()) in two scenarios: when sendin

Re: Updating r->cache in ngx_http_upstream_process_cache_control()

2024-07-26 Thread Maxim Dounin
Hello! On Fri, Jul 26, 2024 at 01:14:39PM -0700, Maksim Yevmenkin wrote: > Hello, > > I would like to understand the rationale for updating > r->cache->valid_sec (and other fields in r->cache) in > ngx_http_upstream_process_cache_control(). > > It appears that ngx_http_upstream_process_cache_co