File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ server {
2727 return 200 "User-agent: *\nDisallow: /";
2828 }
2929
30- location ~ ^/(css|js|images)$ {
30+ location ~ ^/(css|js|images)/ {
3131 access_log off;
3232 expires max;
3333 }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ checkUrl "http://${TEST_ADDR}/.nginx/status" -I
3535checkUrl " http://${TEST_ADDR} /.phpfpm/status" -I
3636checkUrl " http://${TEST_ADDR} /index.php" -I
3737checkUrl " http://${TEST_ADDR} /robots.txt" -I
38+ checkUrl " http://${TEST_ADDR} /images/default/logo-small.png" -I | grep -F " Cache-Control: max-age=315360000"
3839
3940checkUrl " http://${TEST_ADDR} /index.php" | grep -q -F " 1.2.6.4"
4041checkUrl " http://${TEST_ADDR} /cmd.php" " form" " cmd=login&server_id=1&nodecode%5Blogin_pass%5D=1&login=cn%3Dadmin%2Cdc%3Dexample%2Cdc%3Dorg&login_pass=ldapadminpass&submit=Authenticate" | grep -q -F " Successfully logged into server."
You can’t perform that action at this time.
0 commit comments