• Resolved simsim1986

    (@simsim1986)


    I’m getting error “Image Headers Expire” while there is expire images in the htaccess!

    Here is it:

    <IfModule mod_expires.c>
    	ExpiresActive on
    	ExpiresDefault "access plus 1 month"
    
    	# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
    	ExpiresByType text/cache-manifest "access plus 0 seconds"
    	
    	# 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"
    	
    	# Feed
    	ExpiresByType application/rss+xml "access plus 1 hour"
    	ExpiresByType application/atom+xml "access plus 1 hour"
    	
    	# Favicon (cannot be renamed)
    	ExpiresByType image/x-icon "access plus 1 week"
    	
    	# Media: images, video, audio
    	ExpiresByType image/gif "access plus 4 months"
    	ExpiresByType image/png "access plus 4 months"
    	ExpiresByType image/jpeg "access plus 4 months"
    	ExpiresByType image/webp "access plus 4 months"
    	ExpiresByType video/ogg "access plus 4 months"
    	ExpiresByType audio/ogg "access plus 4 months"
    	ExpiresByType video/mp4 "access plus 4 months"
    	ExpiresByType video/webm "access plus 4 months"
    	ExpiresByType image/avif "access plus 4 months"
    	ExpiresByType image/avif-sequence "access plus 4 months"
    	
    	# HTC files (css3pie)
    	ExpiresByType text/x-component "access plus 1 month"
    	
    	# Webfonts
    	ExpiresByType font/ttf "access plus 4 months"
    	ExpiresByType font/otf "access plus 4 months"
    	ExpiresByType font/woff "access plus 4 months"
    	ExpiresByType font/woff2 "access plus 4 months"
    	ExpiresByType image/svg+xml "access plus 4 months"
    	ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
    	
    	# CSS and JavaScript
    	ExpiresByType text/css "access plus 1 year"
    	ExpiresByType application/javascript "access plus 1 year"
    	ExpiresByType application/pdf "access plus 1 month"
    	ExpiresByType application/x-javascript "access plus 1 month"
    	ExpiresByType application/x-shockwave-flash "access plus 1 month"
    </IfModule>

    Can you tell me why the plugin can’t detect it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @simsim1986,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    In that case, Rank Math must have not seen the updated .htaccess configuration. Kindly clear your website caches. Then, head over to your WordPress admin area > Rank Math > Status & Tools > Database tools > Clear SEO Analyzer and Remove transients and run the SEO Analysis again to see if the report is updated.

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

    Thread Starter simsim1986

    (@simsim1986)

    @rankmathsupport

    Unfortunately this didn’t work.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @simsim1986,

    Can you please try a different method of applying “Image Headers Expire” to your website? You may refer to our guide about it here: https://rankmath.com/blog/add-expires-headers-wordpress/

    If that doesn’t help, are you able to share your website here with us so we can check the issue closely?

    Looking forward to helping you.

    Thread Starter simsim1986

    (@simsim1986)

    @rankmathteam

    I’m using WP Rocket already.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @simsim1986,

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

    We are looking forward to helping you.

    Thank you.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello,

    Assuming you are using the latest version of all the plugins, themes & WordPress and the issue is resolved, we are closing this support topic.

    If that is not the case, feel free to open a new support topic or reply to this one, and we will be more than happy to assist.

    Looking forward to helping you. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SEO Analyzer Error “Image Headers Expire” while there is expire headers!’ is closed to new replies.