Re: Updating r->cache in ngx_http_upstream_process_cache_control()

2024-07-29 Thread Maxim Dounin
Hello! On Mon, Jul 29, 2024 at 10:00:29AM -0700, Maksim Yevmenkin wrote: > Hello! > > [...] > > thank you for the response. > > > Parsing cache validity time from cached responses is used at least > > when sending revalidated responses (NGX_HTTP_CACHE_REVALIDATED). > > > > For cached responses

Re: Updating r->cache in ngx_http_upstream_process_cache_control()

2024-07-29 Thread Maksim Yevmenkin
Hello! [...] thank you for the response. > Parsing cache validity time from cached responses is used at least > when sending revalidated responses (NGX_HTTP_CACHE_REVALIDATED). > > For cached responses with other cache statuses > (NGX_HTTP_CACHE_HIT, NGX_HTTP_CACHE_STALE) this probably can be >

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

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