Reduce TTFB (Time To First Byte) & Server Response Time when using Cloudflare

Many Cloudflare users experience a strange issue when using the CDN service where the TTFB/Server response time is actually slower than without Cloudflare. You will find many discussions about this topic and we thought we would put together a quick guide on how to reduce the TTFB when using Cloudflare with your site.

We will assume that you have already addressed all serverside issues and achieved a sub-20-millisecond TTFB without Cloudflare.  Response Time is still an important factor in improving your site load time and especially SEO and TTFB is a ranking factors. There is some interesting debate around:

Cloudflare: ‘Stop worrying about Time To First Byte (TTFB)‘:

From the end user perspective, TTFB is almost useless. In this (real) example it’s actually negatively correlated with the download time: the worse the TTFB the better the download time.

Niel Patel also writes about the topic:

When you’re in the weeds of optimizing your site speed, play smart. Instead of trying hard to push down your document complete, start rendering, or fully loaded page load time metrics (all of which are important), focus on the highest-impact metric first: TTFB.

So TTFB does matter but you shouldn’t spend too much time worrying about it, instead, it should be part of improving the overall experience and load time.

Why is the TTFB & Server Response Time Slower with Cloudflare?

CloudFlare’s TTFB test server behaves a little differently. When it receives a request it sends the first letter of HTTP/1.1 200 OK and then waits for 10 seconds before sending the rest of the headers and page itself. By default, Cloudflare does not cache pages, only static resources. This adds an extra call which would look like User > Cloudflare > Server, as Cloudflare isn’t caching HTML the request for the HTML would have to go through Cloudflare adding an extra request to the process.

How to reduce the Server Response & TTFB with Cloudflare Page Rules?

Reducing the Cloudflare server response time can be achieved by caching everything rather than just static resources. You can do this by using Cloudflare Page Rules to force caching of the entire page rather than static resources.

Cloudflare Page Rules

After deploying the new page rule ensure that you can log into your site and flush the Cloudflare cache if necessary.

For more information on changing the Reduce TTFB (Time To First Byte) & Server Response Time when using Cloudflare, let us help you accordingly, from start to finish, with one-Time fixes, custom plans, or monthly routines for your WordPress website.

Written By
Adam
Founder of WP Helper.
You will also like these articles

Relax Knowing Your WordPress Site Is Secure & Running Smoothly 24/7

Let us manage your WordPress site, everything from security to updates will be taken care of. Support plans also come with dedicated support so we can do anything from adding content to customising your site for you.

Same Day Professional WordPress Support

Get WordPress Support Today

Need help with a single WordPress problem, today? We can help with anything from adding analytics tracking code to site hack recovery. Full money back guarantee on all jobs.

1. Submit a Support Request

Use our support ticket form below to send details of your problem to our developers.

2. Get a Quote

We will review your request and provide a quote within 24 hours (but usually within a few hours).

3. We fix your WordPress problem

Our team will begin fixing your WordPress problem the same day.

4. 100% Money Back Guarantee

If we can’t fix the problem for the amount quoted we will refund you 100%.

  • Do you have a screenshot of the issue or have a copy of the theme or plugin that is at fault? If you want to upload php, html or css please zip first.
    Drop files here or
    Accepted file types: jpg, jpeg, png, pdf, zip, gzip, rar, doc, txt, Max. file size: 15 MB, Max. files: 10.