From 32d30a537e6fa40ad28c8474cdab89ac43fe82ae Mon Sep 17 00:00:00 2001 From: Scott Buchanan Date: Fri, 1 Dec 2017 20:15:52 -0500 Subject: [PATCH] allow more flexible static file version --- nginx.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sample b/nginx.conf.sample index 7257c329df24b..1e20a51a511d3 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -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)$ {