Skip to content

Commit

Permalink
Removed un-used static version rewrite rule in nginx.conf.sample
Browse files Browse the repository at this point in the history
The version / signature for the static file has already been removed by an earlier rule
  • Loading branch information
Carey Sizer committed Dec 21, 2016
1 parent 813fad8 commit b96fa92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ location /static/ {
expires +1y;

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

if (!-f $request_filename) {
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
}
}
if (!-f $request_filename) {
rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last;
rewrite ^/static/?(.*)$ /static.php?resource=$1 last;
}
add_header X-Frame-Options "SAMEORIGIN";
}
Expand Down

0 comments on commit b96fa92

Please sign in to comment.