Hi @frestro79,
I just saw this and it seems that you didn’t fix issue. Root of issue is that supercache serves cached xml files as text/html. Simple workaround is to disable caching for sitemaps. (Yoast SEO already has different kind of caching.)
More info:
https://ww.wp.xz.cn/support/topic/xml-sitemap-not-showing-header-links-and-no-click-able-links/
https://github.com/Yoast/wordpress-seo/issues/5964
Thank for answering 🙂
But how do i disable the caching of xml in supercache?
I have typed .xml in the strings, but that didnt help. So i guess that is not the correct way..
I sent references to other issue (in previous post). There are more answers, but I’m pasting here my last post:
In SuperCache you can do this via SuperCache >> Advanced >> Accepted Filenames & Rejected URIs >> Add here strings (not a filename) that forces a page not to be cached:
sitemap_index.xml
.*-sitemap.xml
By default supercache already have there: wp-.*\.php and index\.php. Add these lines bellow index.php.
I’ve created simple action (PHP code) which is more general solution. I think that previous settings work, but I didn’t test them.
More info:
https://github.com/Yoast/wordpress-seo/issues/5964
https://github.com/Yoast/wordpress-seo/issues/5110
-
This reply was modified 9 years, 5 months ago by
Saša.
-
This reply was modified 9 years, 5 months ago by
Saša.