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.
[TASK] Make XML Sitemap cachable
Cache the XML Sitemaps for 15 minutes by default.
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Riny van Tiggelen <email@example.com>
Tested-by: Riny van Tiggelen <firstname.lastname@example.org>
Reviewed-by: Susanne Moog <email@example.com>
Tested-by: Susanne Moog <firstname.lastname@example.org>
#5 Updated by Richard Haeser over 1 year 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.