SSL for custom domain pointing to workers.dev
I deployed a Workers project and get the *.workers.dev default domain and it works fine. I add a subdomain on a custom domain registered in my Cloudflare account and when accessing it from the same browser as I'm signed into Cloudflare, it throws an error about SSL protocol error. Works fine in an incognito browser and on other devices, doesn't work in cli via CURL from the machine where I'm logged into Cloudflare. Close the browser where I'm logged in, reopen browser, works fine everywhere.
curl: (35) OpenSSL/3.0.13: error:0A00010B:SSL routines::wrong version number
I feel like something along this lines has happened before when adding the custom subdomain to a worker, but this is the first time I've chased down this level of detail.
Any ideas what is going on here? Should I call it a glitch in the Matrix or is this something I should be aware of in the future?1 Reply
DNS cache
Resolving DNS entries is complex and involves many parties (your browser, your operating system, your router and then your ISP's resolver).
Any and all of these intermediaries can potentially cache your DNS request and serve stale content, even though you just updated it.
Quick fixes:
1. Use a different browser
2. Restart your PC
3. Change your DNS from your ISP's to Cloudflare's: https://one.one.one.one/dns/#setup-instructions