Skip to content

Commit b96fa92

Browse files
author
Carey Sizer
committed
Removed un-used static version rewrite rule in nginx.conf.sample
The version / signature for the static file has already been removed by an earlier rule
1 parent 813fad8 commit b96fa92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nginx.conf.sample

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ location /static/ {
108108
expires +1y;
109109

110110
if (!-f $request_filename) {
111-
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
111+
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
112112
}
113113
}
114114
location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {
@@ -117,11 +117,11 @@ location /static/ {
117117
expires off;
118118

119119
if (!-f $request_filename) {
120-
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
120+
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
121121
}
122122
}
123123
if (!-f $request_filename) {
124-
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
124+
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
125125
}
126126
add_header X-Frame-Options "SAMEORIGIN";
127127
}

0 commit comments

Comments
 (0)