Skip to content

Commit

Permalink
Moved v2|init.js expiry setting above generic static file check
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Nov 7, 2017
1 parent 8bbb32f commit 99e4ebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/testdev
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ http {
add_header X-XSS-Protection "1; mode=block";
add_header Referrer-Policy "same-origin";
if (\$request_uri ~* "^/(v2|init.js)") {
expires -1;
}
if (\$request_uri ~* ".(ico|css|js|gif|jpe?g|png|svg)$") {
expires 30d;
access_log off;
add_header Pragma public;
add_header Cache-Control "public";
break;
}
if (\$request_uri ~* "^/(v2|init.js)") {
expires -1;
}
}
}
}
Expand Down

0 comments on commit 99e4ebc

Please sign in to comment.