Cloudflare is a popular CDN that is used by many people using Infinityfree.
Cloudflare caches your webpages and serves the static pages to visitors instead of fetching the page from the origin server.
If you have set Cloudflare cache settings to “cache everything” then it is in your interest to isolate sitemap.xml from that rule so a new fresh version is served rather than an outdated one (cached).
To do this, go to dash.cloudflare.com and select your domain. Go to the Page Rules tab which looks like this:
Also remember to put a * in front of yourdomain.tld/*.xml, ie: *yourdomain.tld/*.xml or else it will not work on all the url variations (http, https, www, non-www).
I would ask you to edit and clarify a little more clearly
because CF by default does not cache XML files
Cloudflare caches XML responses only when using Cache Everything.
So in a lot of cases users would do something they don’t need.
There is no need for you to give me credit and it just distracts people from your tutorial
(thanks but be free to drop that text )
Simply write at the beginning something like:
If you have set Cloudflare cache settings to “cache everything”
then it is in your interest to isolate sitemap.xml from that rule
so a new fresh version is served rather than an outdated one (cached).