<div dir="ltr">Hi, <br><br>Last week I was playing with Nginx proxy caching, and I have the following<br>questions regarding some changes that I would like to introduce.<br><br>At the moment, the cache always uses the `Cache-control: max-age=60` or other<br>headers, but there is no way to say in a request that the maximum time is<br>15seconds for example. <br><br>I would like to introduce a new parameter called `proxy_cache_max_ttl`  and<br>`proxy_cache_min_ttl`  where the  TTL can be defined in a variable and if the<br>cache-control is bigger (or smaller) than that will be overwritten. If min is<br>set and no header, the cache will be set to this value.  <br><br>The changes will happen on `ngx_http_upstream_process_header` function, but I'm <br>not sure if this change will be accepted. <br><br>Do these changes make sense for Nginx? Any reason why these changes will not<br>accept? Can this be achieved in any other way?<br><br>Regards.<br></div>