この期限切れヘッダールールを設定しました
<IfModule mod_expires.c>
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/js "access plus 1 year"
</IfModule>
しかし、pingdom、gtmetrix、pagespeed などの内部でテストすると、期限切れのヘッダーを設定するようにアドバイスされていることがわかります。コードに何か他のものを追加する必要がありますか? または、これらのサービスは期限切れのヘッダーを検出しませんか? または、この問題を解決するために他に何がありますか? 画像の読み込みを高速化するために cloundflare を使用しています。もしかしてこれ?しかし、css、js の有効期限が切れるヘッダーを追加するようにアドバイスされています。しかし、私はまだそれらすべてを追加しています。