Image Headers Expire

#608338
  • Resolved Anonymous
    Rank Math free

    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>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Our tests look for the first image on the page and see if it has the expires headers in the HTTP response which the first image on your page doesn’t have.

    We’ve checked your site and found that your server is using a newer implementation called cache-control but our system cannot detect those and as such it fails this test. That won’t have any negative impact on SEO, and you can simply ignore the error on the SEO Analysis report.

    In simple words, you have the Expires Headers for your images, but with a different implementation which Rank Math can’t detect yet and you can avoid the error on your SEO analysis.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Anonymous
    Rank Math free

    Ok, great, thanks a lot 🙂

    Hello,
    
    You’re welcome.

    We are super happy that we have addressed your concern. If you have any other questions in the future, know that we are here to help you.
    
    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
    
    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
    
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Image Headers Expire’ is closed to new replies.