<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="">I think that the script might have been this:<div class=""><br class=""></div><div class=""><a href="https://github.com/perusio/nginx-cache-inspector" class="">https://github.com/perusio/nginx-cache-inspector</a></div><div class=""><br class=""></div><div class="">Also, the nginx debug log shows you *everything* at 100x the level of detail I expected.</div><div class="">It can be overwhelming though</div><div class=""><br class=""></div><div class="">When you say that the issue is intermittent do you mean that you make </div><div class="">the same request and get different results?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">As for listening to production logging, it needn’t be an issue<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 7 Oct 2018, at 4:57 PM, Jane Jojo <<a href="mailto:janejojo@gmail.com" class="">janejojo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Thanks for this Peter. I’ll look at redbot.</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Do you by any chance have the script? My problem is intermittent and I don’t know if it’s a good idea to actively listen to production logging. </div></div><br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br class=""></div></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sat, Oct 6, 2018 at 3:21 PM Peter Booth via nginx <<a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="">You need to understand what requests are being received, what responses are being sent and the actual keys being used to write to your cache. <div class=""><br class=""></div><div class="">This means intelligent request logging, possibly use of <a href="http://redbot.org/" target="_blank" class="">redbot.org</a>, and examination of your cache. I used to use a script that someone had posted here years ago that would dump cache contents along with cache keys.<br class=""><br class=""><div id="m_-4713383625331856730AppleMailSignature" dir="ltr" class="">Sent from my iPhone</div><div dir="ltr" class=""><br class="">On Oct 6, 2018, at 5:51 PM, Jane Jojo <<a href="mailto:janejojo@gmail.com" target="_blank" class="">janejojo@gmail.com</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Here’s the issue in action [video]: <a href="https://d.pr/v/HmAiK0" style="color:rgb(5,99,193)" target="_blank" class="">https://d.pr/v/HmAiK0</a> </div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">I am using Nginx http caching extensively with the following cache key</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_key "$<a href="scheme://$host$uri" class="">scheme://$host$uri</a>";</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">I know this is a cache issue because I can invalidate it with</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_bypass $arg_nocache;</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Here’s a video of that in action: <a href="https://d.pr/v/Bj5ey6" style="color:rgb(5,99,193)" target="_blank" class="">https://d.pr/v/Bj5ey6</a> </div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Now, this happens only to the homepage URL and the problem recurs after a while (I think after the cache expiry).</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Can you help me understand why this is happening and what I can do to fix?</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">Here’s my code for reference:</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">charset utf-8;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_valid 200 301 302 1d;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_redirect off;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_valid 404 1m;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_revalidate on;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_background_update on;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_lock on;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;</div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: Calibri, sans-serif;" class="">proxy_cache_bypass $arg_nocache;</div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"> </p></div><div class=""><div dir="ltr" class="m_-4713383625331856730gmail_signature" data-smartmail="gmail_signature"><br class=""></div></div></div>
</div></blockquote><blockquote type="cite" class=""><div dir="ltr" class=""><span class="">_______________________________________________</span><br class=""><span class="">nginx mailing list</span><br class=""><span class=""><a href="mailto:nginx@nginx.org" target="_blank" class="">nginx@nginx.org</a></span><br class=""><span class=""><a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank" class="">http://mailman.nginx.org/mailman/listinfo/nginx</a></span></div></blockquote></div></div>_______________________________________________<br class="">
nginx mailing list<br class="">
<a href="mailto:nginx@nginx.org" target="_blank" class="">nginx@nginx.org</a><br class="">
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank" class="">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>