Skip to content

Commit 6eda30c

Browse files
ENGCOM-8632: Remove recursion in location of static files. #30883
2 parents fd95aff + 0aab53f commit 6eda30c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ location /static/ {
108108
# expires max;
109109

110110
# Remove signature of the static files that is used to overcome the browser cache
111-
location ~ ^/static/version {
112-
rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last;
111+
location ~ ^/static/version\d*/ {
112+
rewrite ^/static/version\d*/(.*)$ /static/$1 last;
113113
}
114114

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

0 commit comments

Comments
 (0)