Excluding sitemap from Cache

Hello there,
I’m having issues with the sitemap I contacted Rankmath and they told me this issue is related to cache. So I need to exclude the sitemap from being cached. How can I do that in cloudflare ? Pls

1 Like

Cloudflare shouldn’t cache any sitemap files (XML) unless you’ve manually set full site caching with a Page Rule, or maybe even APO.

https://developers.cloudflare.com/cache/about/default-cache-behavior#default-cached-file-extensions

You could certainly adding a Page Rule with a Cache Level of Bypass for whatever pattern your sitemap URLs follow. *.xml or *sitemap*

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.