@dirk93,
(1) Are you using a CDN (e.g., Cloudflare)? If so, create a page rule to bypass caching of your sitemap.
(2) Are you using any other caching plugin? If so, same as above.
(3) Did you deactivate Rank Math to see if the issue disappears?
(4) Did you flush Supercacher’s cache (or turn it off temporarily) via cPanel?
(5) What plugin are you using to generate your sitemap? Was it updated recently?
(6) Did you try Rank Math’s troubleshooting procedure?
Cheers!
@dirk93,
A few more checks:
(7) Did you check this forum? It may have a solution.
(8) After purging your cache (and performing the above), did you reset your permalinks as described here?
(9) Did you check the solutions provided here?
Cheers!
Thread Starter
dirk93
(@dirk93)
Thanks for the detailed response @jetxpert. See below for my responses.
1. No
2. No
3. Yes but I am using Rank Math to generate the sitemap so it returned a 404.
4. Yes
5. Use Rank Math to generate the sitemap but it was updated recently. I rolled back to a previously version and that appears to have fixed things although things have been a bit flaky. Will need a few more days to see if it is stable.
6. Yes
7. Yes
8. Yes
9. Link didn’t work for me.
After reviewing I believe this may be a Rank Math issue.
With regards to SG Optimizer, will I still be able to use Dynamic Caching AND Browser Caching while excluding the sitemap from these features? I can exclude the sitemap from Dynamic Caching however I don’t see how to accomplish that with Browser Caching.
@dirk93,
Sounds like the recent Rank Math update may be causing the issue.
Check the following as well:
https://rankmath.com/kb/fix-sitemap-issues/
https://support.rankmath.com/ticket/sitemap-404-error/
https://support.rankmath.com/ticket/page-sitemap-404/
https://support.rankmath.com/ticket/error-404-on-post_tag-sitemap-xml/
https://support.rankmath.com/ticket/attachment-sitemap-404-error/
https://support.rankmath.com/ticket/attachment-sitemap-xml-404/
You can also try the solutions provided here (long list). Looks like you’re not alone. Rank Math appears to have a few “bugs.”
Concerning your question about excluding your sitemap from browser caching, I’ll have to defer it to SG. However, not sure why you wouldn’t want your sitemap to be cached.
Best wishes.
Cheers!
I am marking it as solved. Thanks, @jetxpert for the help here 🙂