<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I do not know about caching nor do I take it into consideration as it is not part of the problem as stated.<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
You stated that the location regex was the problem and you seem to have taken the proper checks to verify the proper location is being used, hence I assume the location regex is not the problem.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
<br>I see another regex in the location block, in the rewrite directive, which does not seem to be prepared to face different sensitivities of the case.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
I guess you should follow that lead...<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Please check your rewrite regex against case-sensitivity or, since the regex match is already done at location level and you do not need another one, maybe consider using the <a href="http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#return">return</a> directive instead.<br>
</div><div class="gmail_extra"><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div></div>