As you can see from this webpagetest report : brightlinesdesign.c...Milan, Italy - EC2 - WebPageTest Details the initial connections to my website using CF proxied DNS are painfully slow, over 6 seconds for the first redirect and over 5 seconds for the second one. This does not happen if I switch the Proxied DNS off. I noticed that if I switch to SSL/TLS to “Flexible” this issue does not happen anymore. Unfortunately this setting is not recommended. As soon as I switch again to “SSL/TLS → Full Strict”, the issue happens again.
Could you please help me investigate what could be the problem?
Sounds to me like you have an insecure setup at your origin host/server.
Before moving to Cloudflare, was your Website working over HTTPS connection?
Did you had valid SSL certificate installed or not at your origin host / server for your domain name (covering both naked domain, www, and other sub-domains)?
Solution:
Here is a way to re-check if you correctly setup the SSL for your domain with Cloudflare:
In case you do not have an SSL certificate, you can use Cloudflare SSL, if so, kindly make sure you follow the instructions as follows on the below article to setup an SSL certificate using Cloudflare Origin CA Certificate:
Hello @fritex, many thanks for your reply. Yes I confirm that I have a valid certificate on my server issued by let’s encrypt for both the root domain and all subdomains via a wildcard domain.
I took screenshots
Right now I have disable the DNS proxy on my website, so it can also be verified directly if you want, just access brightlinesdesign.com and check the certificate.
In order to narrow down the issue, I have made the following setup: test.brightlinesdesign.com → Proxied through Cloudflare (Orange cloud) brightlinesdesign.com → No proxy, direct host access (Grey cloud)
ping test.brightlinesdesign.com takes about 5 seconds to reply to the first ping. The first ping itself is short (about 15 ms) but still it takes about 5s to get to the first ping
With this setup I have ruled out any issue related to the webserver (it’s not running at all). I hope this helps someone try to get to the root of the problem. Thank you