File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ location /static/ {
99
99
100
100
# Remove signature of the static files that is used to overcome the browser cache
101
101
location ~ ^/static/version {
102
- rewrite ^/static/(version[^/]+ /)?(.*)$ /static/$2 last;
102
+ rewrite ^/static/(version\d* /)?(.*)$ /static/$2 last;
103
103
}
104
104
105
105
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|json)$ {
@@ -108,7 +108,7 @@ location /static/ {
108
108
expires +1y;
109
109
110
110
if (!-f $request_filename) {
111
- rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
111
+ rewrite ^/static/(version\d*/) ?(.*)$ /static.php?resource=$2 last;
112
112
}
113
113
}
114
114
location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
@@ -117,11 +117,11 @@ location /static/ {
117
117
expires off;
118
118
119
119
if (!-f $request_filename) {
120
- rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
120
+ rewrite ^/static/(version\d*/) ?(.*)$ /static.php?resource=$2 last;
121
121
}
122
122
}
123
123
if (!-f $request_filename) {
124
- rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
124
+ rewrite ^/static/(version\d*/) ?(.*)$ /static.php?resource=$2 last;
125
125
}
126
126
add_header X-Frame-Options "SAMEORIGIN";
127
127
}
You can’t perform that action at this time.
0 commit comments