Try exact matched location =/
location =/site_root/web/assets/dynamic/file.uk.js { fast_cgi ...}
Exact matching pattern (=/) has always higher priority than regexp location. See docs wiki page