Skip to content

Instantly share code, notes, and snippets.

@anandslab
Created July 6, 2014 15:46
Show Gist options
  • Save anandslab/8de59fe16a2a1d25ad7f to your computer and use it in GitHub Desktop.
Save anandslab/8de59fe16a2a1d25ad7f to your computer and use it in GitHub Desktop.
W3 Total Cache exclusions for sitemaps. Use this under Page Cache (Never cache the following items), Minify (Never minify the following items), Browser Cache (404 Error Exception List), and CDN (Rejected Files) for Yoast or any XML sitemaps for WordPress.
([a-z0-9_\-]+)?sitemap(_index)?(-)?([0-9]*)?\.(xml(\.gz)?|xsl)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment