I’ve added the FilesMatch branch below, inside my htaccess, but google pagespeed still complains about setting cache expirations. Is this code valid?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$">
ExpiresActive On
ExpiresDefault A2592000
</FilesMatch>
# END WordPress
I’m using this pattern for most of my pages with good success. This i place under the mod_rewrite options. Hope this helps.