Author Topic: NGINX-Configs for Cloudflare Super Page Cache breaks sitemaps  (Read 3995 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi

Hi
I'm using the incredible Wordpress Plugin Cloudflare Super Page Cache https://wordpress.org/plugins/wp-cloudflare-page-cache/ and I have to paste following lines into the nginx config files to make it work:
Code: [Select]
   location ~* \.(xml|xsl)$ { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
location = /wp-content/wp-cloudflare-super-page-cache/---replace-mydomain.com---/debug.log { access_log off; deny all; }


When I paste them into the standard nginx-config template and restart nginx the plugin works great, but I get a 404 on the sitemaps. Any idea why this happens?

Best, Filz