<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I am using NGINX (1.17.0) as a reverse proxy with cache. I want the cache to be updated even when the client closes the connection before the response is delivered to the client. </div><div class=""><br class=""></div><div class="">Will setting proxy_ignore_client_abort to on do this?</div><div class=""><br class=""></div><div class="">Details:</div><div class=""><ul class="MailOutline"><li class="">The client makes a HTTP range request on a large resource.</li><li class="">NGINX determines that the resource is not in the cache and forwards the request upstream.</li><li class="">Upstream starts delivering the resource, and NGINX starts caching the resource (in temp file).</li><li class="">Client times out and closes the connection to NGINX.</li></ul><div class=""><br class=""></div><div class="">Questions: with <font face="Menlo" class="">proxy_ignore_client_abort on;</font></div></div><div class=""><ul class="MailOutline"><li class="">Will nginx continue to download the rest of the resource from the upstream server?</li><li class="">Will nginx move the resource from the temp file to the cache file?</li></ul></div><div class=""><br class=""></div><div class="">The discussion referenced below implies that the upstream connection is still closed when nginx fails to send the response to the client.</div><div class="">In the case of a range request, nginx will send the response once the requested range is available, and thus before the resource is completely downloaded.</div><div class="">Therefore, this would imply that the resource will not be cached, regardless of the value of the proxy_ignore_client_abort directive.</div><div class=""><a href="https://forum.nginx.org/read.php?2,253026,253029#msg-253029" class="">https://forum.nginx.org/read.php?2,253026,253029#msg-253029</a></div><div class=""><br class=""></div><div class="">Thanks…</div><div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""></div></body></html>