<div dir="ltr"><pre style><font color="#000000"><span style="white-space:pre-wrap">Thanks for the reply BR.</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style>
<font color="#000000"><span style="white-space:pre-wrap">That's not quite what I'm after - "rewrite" does an internal redirect, "return" will tell the browser to redirect. This recipe is all about CSS/JS "cache busting" of requested assets.</span></font></pre>
<pre style><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">Make sense?</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap"><br>
</span></font></pre><pre style><font color="#000000"><span style="white-space:pre-wrap">> What about:
>
> location ~ "^/[a-f0-9]{16}/(css|js)/(.+)" {
>
> expires 30d;
> return $scheme://$host/$1/$2? break;
> }
>
> ?
>
> You could add the 301 code for permanent redirect, see
> <a href="http://nginx.org/r/return">http://nginx.org/r/return</a>
> ---
> *B. R.*
> <br></span></font></pre></div>