The ^~ modifier makes this a priority prefix match, meaning that if this block matches the request, Nginx will stop searching for other potential matches.