Thanks for the reply BR.

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.


Make sense?


> 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
> http://nginx.org/r/return
> ---
> *B. R.*
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to