Mobile app version of vmapp.org
Login or Join
Lengel546

: 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

@Lengel546

Posted in: #CacheControl #Css #Htaccess #PageSpeed #Wordpress

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?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme