Rank math not recognizing expired header

#580299
  • Resolved Ralf Kropla
    Rank Math pro

    Hey,

    the app shows “Your server is not using expires header for your images.”
    However, this information is not correct because the information is in my .htaccess.

    The error persists even though I deleted the analysis data and transists.

    Copy of .htacess:

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css A31536000
    ExpiresByType text/x-component A31536000
    ExpiresByType application/x-javascript A31536000
    ExpiresByType application/javascript A31536000
    ExpiresByType text/javascript A31536000
    ExpiresByType text/x-js A31536000
    ExpiresByType text/html A3600
    ExpiresByType text/richtext A3600
    ExpiresByType text/plain A3600
    ExpiresByType text/xsd A3600
    ExpiresByType text/xsl A3600
    ExpiresByType text/xml A3600
    ExpiresByType video/asf A31536000
    ExpiresByType video/avi A31536000
    ExpiresByType image/avif A31536000
    ExpiresByType image/avif-sequence A31536000
    ExpiresByType image/bmp A31536000
    ExpiresByType application/java A31536000
    ExpiresByType video/divx A31536000
    ExpiresByType application/msword A31536000
    ExpiresByType application/vnd.ms-fontobject A31536000
    ExpiresByType application/x-msdownload A31536000
    ExpiresByType image/gif A31536000
    ExpiresByType application/x-gzip A31536000
    ExpiresByType image/x-icon A31536000
    ExpiresByType image/jpeg A31536000
    ExpiresByType image/webp A31536000
    ExpiresByType application/json A31536000
    ExpiresByType application/vnd.ms-access A31536000
    ExpiresByType audio/midi A31536000
    ExpiresByType video/quicktime A31536000
    ExpiresByType audio/mpeg A31536000
    ExpiresByType video/mp4 A31536000
    ExpiresByType video/mpeg A31536000
    ExpiresByType video/webm A31536000
    ExpiresByType application/vnd.ms-project A31536000
    ExpiresByType application/x-font-otf A31536000
    ExpiresByType application/vnd.ms-opentype A31536000
    ExpiresByType application/vnd.oasis.opendocument.database A31536000
    ExpiresByType application/vnd.oasis.opendocument.chart A31536000
    ExpiresByType application/vnd.oasis.opendocument.formula A31536000
    ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
    ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
    ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
    ExpiresByType application/vnd.oasis.opendocument.text A31536000
    ExpiresByType audio/ogg A31536000
    ExpiresByType video/ogg A31536000
    ExpiresByType application/pdf A31536000
    ExpiresByType image/png A31536000
    ExpiresByType application/vnd.ms-powerpoint A31536000
    ExpiresByType audio/x-realaudio A31536000
    ExpiresByType image/svg+xml A31536000
    ExpiresByType application/x-shockwave-flash A31536000
    ExpiresByType application/x-tar A31536000
    ExpiresByType image/tiff A31536000
    ExpiresByType application/x-font-ttf A31536000
    ExpiresByType application/vnd.ms-opentype A31536000
    ExpiresByType audio/wav A31536000
    ExpiresByType audio/wma A31536000
    ExpiresByType application/vnd.ms-write A31536000
    ExpiresByType application/font-woff A31536000
    ExpiresByType application/font-woff2 A31536000
    ExpiresByType application/vnd.ms-excel A31536000
    ExpiresByType application/zip A31536000
    </IfModule>

    How did this erroneous evaluation come about?
    Best wishes
    Ralf

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

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

    Can you please share your website URL so that we can check the issue further for you?

    Meanwhile, please head over to your WordPress Dashboard > Rank Math > Status & Tools > Database Tools > and click the Clear SEO Analysis and Remove Transients buttons to flush the SEO Analysis cache.

    Flush

    Once done, clear your website and any server-level caching on your site before doing the SEO analysis again.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    I followed the instructions but I still get Rank Math saying “Your server is not using expires header for your images.”

    You can reach the website at https://attatroll.de.

    Ralf

    Hello,

    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.

    o. k.

    Hello,

    We’re glad that we could address your concern.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Rank math not recognizing expired header’ is closed to new replies.