: ExpiresByType not working for PNG images when set in .htaccess for a WordPress site In my website I have the expires headers settings reported below. When I use Google's PageSpeed Insights test
In my website I have the expires headers settings reported below. When I use Google's PageSpeed Insights test I get the message: XYZ.png expire headers not set, which I'm getting for all the PNG files in the WordPress theme I'm using.
It looks to me like PNG expires headers are already set in the .htaccess file, but I'm still getting this error/warning.
<IfModule mod_mime.c>
AddType image/png .png
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/png A31536000
</IfModule>
Does anyone know how I might be able to set the PNG expires headers correctly?
More posts by @Lengel546
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.