exclude sitemaps from CDN

#166129
  • Resolved Faisal
    Rank Math free

    Hello, I am using stackpath CDN through my hosting provider ( cloudways) and I was wondering if I should exclude the sitemap files from caching ( link below) .and If yes, what should be I add in the exclude part of the CDN

    Thanks,

    Faisal

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    You should also exclude your sitemap if you’re using a CDN for your latest changes or posts to be reflected as well in SERPs.

    Please add this to the exclusion list (if not yet):
    /(.*)sitemap(.*).xml

    That should prevent sitemap files from being cached.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance.

    Faisal
    Rank Math free

    Hello, thanks. I did.

    Is there a way to confirm that CDN is excluding this list ?

    Anas
    Rank Math business

    Hello,

    To verify that your sitemap is not cached, open the sitemap URL in Chrome, head over to the developer tool > Network Tab > Click on sitemap URL > Check cache-control:
    nocache

    I have checked your sitemap it is not getting cached.

    I hope that helps. Looking forward to helping you.

    Faisal
    Rank Math free

    thanks, rankmath support is great

    Hello,

    We are super happy that we were able to help. 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘exclude sitemaps from CDN’ is closed to new replies.