以下のようにnginxでブラウザキャッシュ出来るように設定したのですが、
設定できているか、GTmetrixというサイトで調べてみたのですが、
設定しているつもりなのですが、E(56)判定が改善されませんでした
以下の設定方法が間違っているのか、記述場所が違うのでしょうか?
/etc/nginx/conf.d/example.conf
server { listen 80; server_name .example.com; root /usr/share/nginx/example/wordpress; index index.php; charset utf-8; try_files $uri $uri/ /index.php?q=$uri&$args; location ~* ^.+.(css|js)$ { access_log off; log_not_found off; expires 1d; } location ~* /wp-config.php { deny all; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; include fastcgi_params; } # phpMyAdmin settings location /phpMyAdmin { alias /usr/share/phpMyAdmin/; index index.php; location ~ ^/phpMyAdmin/(.+\.php)$ { alias /usr/share/phpMyAdmin; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/phpMyAdmin/$1; fastcgi_param PATH_INFO $fastcgi_script_name; include fastcgi_params; } } }
あなたの回答
tips
プレビュー