Your server is not using expires header for your images

#561905
  • Resolved Anonymous
    Rank Math free

    Hello guys! How are you?

    I’m receiving the below error when I scan my website https://civildeng.com

    Error description:
    Your server is not using expires header for your images

    The problem is: My website images are using “expires” which you can see if you open the developer tools go to network and click on any image. You will see that all of them have the “expires” property inside response headers.

    That said, what should I do to make the analysis return OK for the “Image Headers Expire”?

    Thanks in advance.

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

    Thank you for contacting the support 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. The URL in question https://civildeng.com/ is built on ASP.Net, so I would suggest posting the question to ASP forum about it.

    Having said that, if your server is using a newer implementation called cache-control but our system cannot detect those and as such it fails this test.

    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

    Hello Sandeepan, thanks for your reply.

    On your reply you said that my first image doesn’t have the expire header. Can you please tell me switch is this “first image” URL? I’m asking because I just double checked, and all the images have the expires header.

    Also, can you please tell me the URL of the ASP.Net forum?

    Thanks

    Have a great day!

    Hello,

    Apologies for mistyping. I meant to say the first image “does” has the expires header.

    You can try https://forums.asp.net/myforums.aspx posting question here.

    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

    Hello again Sandeepan.

    I don’t get it. If your test checks for the expires header in the first image, and as you said, the image has indeed the header properly setted, why is your system saying that the test failed?

    It should say that the test passed, right?

    What does the new implementation have to do with what your system checks? If your criteria for passing the test is to check if the first image has the header (and it does) then the problem relays on your system, or you’re not explaining the real criteria being checked.

    What am I supposed to ask in the ASP.Net forum? That’s a third party website that has nothing to do with rankmath…

    Please, explain to me what is wrong on my side, or in your side, so I can make the test pass as OK.

    Thanks

    Hello,

    As suggested above, if your server is using a newer implementation called cache-control our system cannot detect those and as such it fails this test.
    In that situation, there’s nothing that can be done to fix this within our SEO Analyzer since it’s a shortcoming of our API.

    In that case, you can simply ignore this test, knowing that the images do have an expires header on them.

    Hope that helps.

    Thank you

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Your server is not using expires header for your images’ is closed to new replies.