Epic #83559: SEO enhancements in Core
Make XML sitemap cachable
The new feature for XML sitemaps is non-cached. We have to check if it is possible to cache this sitemap with a short-lifetime.
Updated by Richard Haeser over 2 years ago
Bots doesn't care how long it takes, as long as the request didn't timeout. Because you never know if your sitemap is already cached, I already made sure sitemaps are not to big so they probably won't timeout (I don't know on what hosting platform the website is). You can test it in https://review.typo3.org/#/c/58227/.
You want the most up 2 date information at the moment a bot visits your page, because you don't know when he is coming back. So for now the caching period will be 5 minutes by default, but at least that will be configurable.