Skip to content

Commit 32d30a5

Browse files
committed
allow more flexible static file version
1 parent 33574a3 commit 32d30a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.conf.sample

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ location /static/ {
100100

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

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

0 commit comments

Comments
 (0)