Greetings to you!
Input data: My site is located in Moscow, and I use Cloudflare Pro with all the acceleration and optimization functions.
I am using LiteSpeed + MariaDB 10.5, and everything works very fast. Pages weigh a maximum of 50 KB.
When accessing the server directly from Estonia, the source server in Moscow delivers the HTML page in 100-200 milliseconds (time to first byte).
I also use Cloudflare Pro with all the website acceleration and optimization features. The site code is written in PHP 7.2 by the senior developer.
I repeat, the site loads in 100-200 milliseconds when accessed from Europe WITHOUT Cloudflare.
Traffic mainly comes from the USA, Europe, India, Brazil, Russia, and Australia.
Question: Why does the “TTFB” increase from 400 to 1200 milliseconds when connecting the website to Cloudflare?
Why is this so? Shouldn’t the CDN, on the contrary, speed up and reduce TTFB and so on?
Maybe you have encountered a similar situation and know how to solve this oddity?
Unfortunately, Cloudflare support is no longer what it was 5 years ago. Now it is an incredibly slow, bureaucratic organization. Their tech support has not been able to respond for a month after I provided all the data, including my browser HAR records.
Therefore, I am writing to the community in the hope of finding a solution to this problem.