Add code to file

Posted in: Newspaper
Post count: 97

I am using WordPress engine with cloudflare. The site is on the Newspaper theme. The same can be found here
https://newspatron.com

I recently installed a plugin in order to optimize cloud flare. The plugin is Super Page Cache for Cloudflare. It speaks of adding the rules to configuration file.

“Browser caching rules
Open the configuration file of your domain and add the following rules:

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/newspatron.com/debug.log { access_log off; deny all; }

Save and restart Nginx.”

Please let me know where the same could be added as obviously i am on Nginx.

Thanks

Post count: 21065

Hello @newspatron !

Please address this issue to that plugin’s support team.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.