Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: try_files and static content with query string (token/version)

$
0
0
Well ... it seems that $uri is what I was looking for:

# ... = snip of extensions for readability purposes
location ~* ^(.*\.[^.]*)(jpg|jpeg|gif|png|...|woff|ttf|svg)(\?.*)?$ {
try_files $uri @apache;
}

I expanded the regexp a bit to be sure that I'm matching the text after the last dot in the uri.

Hope this helps somebody.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>