How to Make Cloudflare Serve Stale Content Using Cache Rules

Thanks to Cache Rules, we can easily configure Cloudflare to serve stale content while updating resources from the server. This bypasses the speed penalty of serving outdated content by dipping into the Cloudflare cache one last time for static assets that most likely haven't changed … [Read more...]

How to Use Cloudflare Zero Trust For WordPress Login Pages

Cloudflare Zero Trust lets you protect WordPress login pages and firmly thwart hackers from trying to infiltrate your application. It also eliminates bot traffic that uses up server resources. Here are the steps to implement it. Related to Cloudflare Zero Trust: Cloudflare Firewall … [Read more...]

Add a Cache-Control Header with Cloudflare Instead of Expires

The Cache-Control header controls how Cloudflare treats cached assets, along with others like"Vary" and "Expires". But with cache-control, you don't need to add an expires header with Cloudflare since the latter overrides the former. Here's how to modify the cache-control response header using … [Read more...]

Super Page Cache for Cloudflare for Full WordPress Caching

Instead of just caching static assets like images, CSS, and JavaScript files, you can use Cloudflare to cache your entire WordPress site. So if you have mainly static content that doesn't change very often, you can get Cloudflare to host your website! When combined with Cloudflare Cache Reserve, … [Read more...]

Cloudflare Cache Reserve Eliminates Caching Plugins!

Cloudflare's Cache Reserve will let you completely eliminate WordPress caching plugins when it rolls out. Now you can have true CDN hosting in the cloud with your content stored globally for a fraction of your hosting costs. With the Cloudflare cache reserve, the performance of cheap web hosting … [Read more...]

HUGE Disadvantage of Using Cloudflare as a Domain Registrar

I'm a big fan of the Cloudflare domain registrar service, and I use it for all my domains. Here's a screenshot of all the domains I have registered with Cloudflare: Using Cloudflare as a Domain Registrar However, there's one significant disadvantage: You can't transfer your nameservers to … [Read more...]

How to Add a Cloudflare noindex X-Robots-Tag

Here's how to add a Cloudflare "noindex" tag to your pages using the X-Robots-Tag response header. This solution works for all sites, including those on WordPress. Related to Cloudflare: Cloudflare Rule to Block WordPress Spam How to Fix Cloudflare Blocking REST API Requests How … [Read more...]

ONE Cloudflare Rule to Block All WordPress Comment Spam

Here's an easy way to block all WordPress comment spam using a single Cloudflare firewall rule. Related to Cloudflare and WordPress Comments: How to Implement Infinite Threaded Replies in WordPress How to Disable Links in WordPress Comments How to Fix Cloudflare Blocking REST API … [Read more...]

How Cloudflare Makes Money

Cloudflare makes money in three ways - subscriptions, "pay as you go" services and enterprise partnerships. People have difficulty understanding how it makes money because the Cloudflare free tier is so generous, and they wonder how a company can provide so many services without charging anything. … [Read more...]

[Fix] Cloudflare Blocking REST API Requests

Sometimes, Cloudflare blocks REST API requests and prevents WordPress from working correctly. I most commonly encounter this problem when the WordPress Gutenberg editor throws the following message: Updating failed. The response is not a valid JSON response. Cloudflare Blocking REST API … [Read more...]

WP-Tweaks