Comparing the load times between a repository hosted on a Render.com static site and Cloudflare Pages, the site on Render.com is about 2-4 times slower than on Cloudflare.
Cloudflare is also the CDN for Render, so all things being equal, I expect these results to be similar, assuming both static sites were already cached in a Cloudflare edge server. I’m guessing Cloudflare would have some advantage if the requested static page needed to be loaded from the origin server.
Where did you get these results from, if you are okay sharing this information on your community post? Also, what URL did you use to check the Render and Cloudflare sites? If you want to keep this information private, you are welcome to open a support ticket from the Render dashboard, and we can talk about this in private.
thank you for your response. As stated in the post, I used https://tools.keycdn.com/performance to get those metrics. For the static page on Render I used http://<render-project>.onrender.com whereas for CloudFlare I used https://<cf-project>.pages.dev to avoid potentioal issues with the custom domain configuration in both cases.
I will open a support ticket to talk with you about the specifics.
The final answer here is that by default, Render sets cache-control: public, max-age=0, s-maxage=300 on responses. So pages are cached for 5 minutes before being re-fetched from the Cloudflare origin. This will be from Oregon, making the TTFB slower depending on the client’s location. Setting your cahce-control header should help with this: https://render.com/docs/static-site-headers