-
Hi, upon finishing the SEO analysis test, it says that my server is not using expires header for my images. Upon checking the .htaccesss file, I found that headers seem to be set but not working? I do not know why. Is this something you can assist with or is this a cashing problem caused by FlyingPress Cashing plugin? This is my site https://www.yorge.cz/ and below, I am including an excerpt from the .htaccesss file. Thanks.
# BEGIN FlyingPress
# Cache-control response header for browser caching
<IfModule mod_expires.c>
ExpiresActive on
# Your document html
ExpiresByType text/html “access plus 0 seconds”
# Data
ExpiresByType text/xml “access plus 0 seconds”
ExpiresByType application/xml “access plus 0 seconds”
ExpiresByType application/json “access plus 0 seconds”
# Favicon
ExpiresByType image/x-icon “access plus 1 year”
# Media: images, video, audio
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/webp “access plus 1 year”
ExpiresByType image/avif “access plus 1 year”
ExpiresByType video/ogg “access plus 1 year”
ExpiresByType audio/ogg “access plus 1 year”
ExpiresByType video/mp4 “access plus 1 year”
ExpiresByType video/webm “access plus 1 year”
# HTC files (css3pie)
ExpiresByType text/x-component “access plus 1 year”
# Webfonts
ExpiresByType font/ttf “access plus 1 year”
ExpiresByType font/otf “access plus 1 year”
ExpiresByType font/woff “access plus 1 year”
ExpiresByType font/woff2 “access plus 1 year”
ExpiresByType image/svg+xml “access plus 1 year”
ExpiresByType application/vnd.ms-fontobject “access plus 1 year”
# CSS and JavaScript
ExpiresByType text/css “access plus 1 year”
ExpiresByType text/javascript “access plus 1 year”
ExpiresByType application/javascript “access plus 1 year”
ExpiresByType application/x-javascript “access plus 1 year”
ExpiresByType application/font-woff2 “access plus 1 year”
</IfModule>
The ticket ‘Image Headers Expire’ is closed to new replies.