<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have a similar issue:</div><div style="font-size:12.8px"><a href="http://mailman.nginx.org/pipermail/nginx/2017-March/053198.html" target="_blank">http://mailman.nginx.org/<wbr>pipermail/nginx/2017-March/<wbr>053198.html</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I noticed (using tcpdump) that all data except the last package is send immediately.</div><div style="font-size:12.8px">Can you verify it that's happening in your case as well?<img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="font-size: 12.8px; opacity: 0.3;"></div><span class="gmail-HOEnZb gmail-adL" style="font-size:12.8px"><font color="#888888"><div><br></div><div>JP</div></font></span><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 1:32 PM, IgorR <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm trying to configure nginx to use proxy_cache_background_update but it<br>
seems like after expiry it still waits for the full roundtrip to the<br>
backend, returning a MISS in X-Cache-Status. What am I MISSing?<br>
<br>
I'm using nginx 1.11.12 under ubuntu 14.04 running inside docker, but<br>
hopefully this is too much detail.<br>
<br>
location ~ ^/?(\d+/[^/]+)?/?$<br>
{<br>
   expires 20s;<br>
<br>
   proxy_cache app_cache;<br>
   proxy_cache_lock on;<br>
<br>
   proxy_cache_bypass $http_upgrade;<br>
<br>
   proxy_pass <a href="http://172.17.0.2:5000" rel="noreferrer" target="_blank">http://172.17.0.2:5000</a>;<br>
   proxy_http_version 1.1;<br>
   error_log    /nginxerror.log debug;<br>
<br>
   add_header X-Cache-Status $upstream_cache_status;<br>
<br>
   proxy_cache_use_stale error timeout updating http_500 http_502 http_503<br>
http_504;<br>
   proxy_cache_background_update on;<br>
<br>
   break;<br>
}<br>
<br>
NB: This is a duplicate of my so question, I was kindly advised on the nginx<br>
IRC to repost here for better chances, the original question is here:<br>
<a href="http://stackoverflow.com/questions/43223993/nginx-proxy-cache-background-update-after-cache-expiry" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/43223993/nginx-<wbr>proxy-cache-background-update-<wbr>after-cache-expiry</a><br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,273417,273417#msg-273417" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?2,273417,273417#msg-273417</a><br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div>