Skip to content

Commit

Permalink
allow more flexible static file version
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsb committed Dec 2, 2017
1 parent 33574a3 commit 32d30a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ location /static/ {

# Remove signature of the static files that is used to overcome the browser cache
location ~ ^/static/version {
rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last;
rewrite ^/static/(version[^/]+/)?(.*)$ /static/$2 last;
}

location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
Expand Down

0 comments on commit 32d30a5

Please sign in to comment.