What are the differences between loading a page using CDN and what kind of prodivers are you using?
I have much longer loading time to use with cdn. Can I do something wrong or don’t know about something ? maybe i should still set some settings I don’t know about?
Well, the first clue … thanks to .
A little bit. How much? We’re talking about days, weeks?
Should we force a payload in https or rather http ? I’m asking because there are differences in loading. What does it depend on whether the page is loaded all or looks like the original javascript would have not been loaded ??
The time frame will depend on how the users interact with the site. The most downloaded assets will get loaded to the CDN caché, and will be faster if you’re closer to the CDN server than from the server.
If you have the datacenter next to you, and the CDN server is 1000Km away, it will always be slower. The idea of the CDN is to serve better a geographically diverse audience, not to improve centralized visits.
What you are seeing is just normal variance. CDN will have no impact on the time to first byte on your the root of your Discourse instance or in any other dynamic route. A CDN will only serve the static assets.
You’ll speed up the page, but not the First Byte. You’ll speed up the loading of multimedia (images, PDF, videos) and JS. This will improve the snappiness of the site, but all the dynamic content will need to be loaded from the central server.
So, the Avatars of the users will be quicker, for example, but not the titles of the topics.