Skip to content

Instantly share code, notes, and snippets.

@neevor
Created May 11, 2011 00:28
location / {
rewrite ^/r-[a-z0-9]+/(.*)$ /$1;
if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
expires max;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment