W3TC & YOAST sitemap
-
Hi,
I was controlling some parameters of my website, and found that the Yoast sitemap is been cached no matter which settings I set within W3TC control panel. URL mysweetlaura.it/sitemap.xml is not being cached, but Yoast redirects it to mysweetlaura.it/sitemap_index.xml and this final location is being cached. Despite excluding this with regex in “never cache this pages” in page cache, browser cache, minify, etc. Primed cache is not enabled, nor database cache. The only way I found to prevent this situation is disabling browser cache, but this obviously, won’t be the case of having a caching plugin.I will really appreciate any helpful information on this. I searched for it on Google and within this forum to no avail.
This is what I see on tools.seobook.com/server-header-checker (browser cache enabled):
*****************************
Requesting https://www.mysweetlaura.it/sitemap.xml SERVER RESPONSE: HTTP/1.1 301 Moved Permanently Date: Mon, 11 Jun 2018 22:43:35 GMT Server: Apache X-Powered-By: W3 Total Cache/0.9.7 Expires: Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=0 Upgrade: h2,h2c Connection: Upgrade, close Location: https://www.mysweetlaura.it/sitemap_index.xml Vary: User-Agent Referrer-Policy: Content-Type: text/html; charset=UTF-8 Redirecting to: https://www.mysweetlaura.it/sitemap_index.xml SERVER RESPONSE: HTTP/1.1 200 OK Date: Mon, 11 Jun 2018 22:43:36 GMT Server: Apache X-Powered-By: W3 Total Cache/0.9.7 X-Robots-Tag: noindex, follow Upgrade: h2,h2c Connection: Upgrade, close Cache-Control: max-age=3600 Expires: Mon, 11 Jun 2018 23:43:36 GMT Vary: User-Agent Referrer-Policy: Content-Type: text/xml; charset=UTF-8
*****************************
FWIW, same tool, browser cache disabled:
*****************************
Requesting https://www.mysweetlaura.it/sitemap.xml SERVER RESPONSE: HTTP/1.1 301 Moved Permanently Date: Mon, 11 Jun 2018 23:28:55 GMT Server: Apache Expires: Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=0 Upgrade: h2,h2c Connection: Upgrade, close Location: https://www.mysweetlaura.it/sitemap_index.xml Vary: User-Agent Content-Type: text/html; charset=UTF-8 Redirecting to: https://www.mysweetlaura.it/sitemap_index.xml SERVER RESPONSE: HTTP/1.1 200 OK Date: Mon, 11 Jun 2018 23:28:55 GMT Server: Apache X-Robots-Tag: noindex, follow Upgrade: h2,h2c Connection: Upgrade, close Vary: User-Agent Content-Type: text/xml; charset=UTF-8
The page I need help with: [log in to see the link]
- The topic ‘W3TC & YOAST sitemap’ is closed to new replies.