BoldGrid / w3-total-cache

GNU General Public License v2.0
152 stars 85 forks source link

Native sitemap caching issues #447

Closed superpoincare closed 5 months ago

superpoincare commented 3 years ago

In W3TC 2.1.9, the feature to cache sitemaps was implemented.

However two issues remain:

  1. When requesting wp-sitemap.xml, wp-sitemap-index.xsl or wp-sitemap.xsl is also loaded and should be cached, but is not at present.
  2. The headers for wp-sitemap.xml in Apache isn't correct. Also when caching the xsls, the same has to be done too.
superpoincare commented 3 years ago

Also I add that I am not able to reproduce my own issue 1 but 2 is valid.

I add more issues

cssjoe commented 5 months ago

@superpoincare The latest version 2.7.2 included some updates for handling XML sitemaps. In order to support XML cache rewrites for Page Cache, you can go to wp-admin/admin.php?page=w3tc_pgcache and check the box for "Handle XML mime type". Please let us know if this solves the issue. If there is still an issue, then feel free to reopen this issue.