Home > Programming, Servers & Scripts > Hosting, Servers & Security

Pages pops up from Hosting or CND?! (6)


05-28-2020 11:27 PM #1 ahmedmtr (AMC Alumnus)
Pages pops up from Hosting or CND?!

Why we care about choosing VPS not shared servers? While at the end pages will be served from CDN providers?

This is always confusing me

Ahmed


05-29-2020 09:01 AM #2 nickpeplow (AMC Alumnus)
Pages pops up from Hosting or CND?!

When people normally talk about cdn’s they are referring to hosting the images, css and other files on it - but the actual HTML page on a server. In this case, you need a decent enough server to serve this page.

It’s possible to actually host the entire html page and all the assets on a cdn, either by pointing the cdn at your website, or uploading the girls to the CDN over ftp.

For pops, hosting the entire site on the cdn will result in a very fast loading site for use users all around the world. I would suggest this. It will however cost you per GB used and this will increase with your traffic.

Using a cheap cdn like bunnycdn, even millions of visits will cost next to nothing.


05-29-2020 09:52 AM #3 eurosen (AMC Alumnus)

Hosting a static lander on a CDN is something I have never actually thought about, but it sounds very interesting.

In the case of Bunnycdn, can you upload all your lander files there and simply point your domain to BunnyCDN?

This seems like a much easier setup then my current setup which involves S3 and Amazon Cloudfront.


05-29-2020 10:32 AM #4 twinaxe (Senior Moderator)

The problem is when you host HTML pages with dynamic values on a CDN then user can see teh cached version and not the version with actual dynamic values.

That´s why I don´t use HTML on CDN and use it only for CSS/JS/images.

A decent VPS at digital ocean isn´t expensive so it shouldn´t be a problem to run a good infrastructure.


05-29-2020 11:41 PM #5 ahmedmtr (AMC Alumnus)

Quote Originally Posted by twinaxe View Post
The problem is when you host HTML pages with dynamic values on a CDN then user can see teh cached version and not the version with actual dynamic values.
What can be an example of dynamic value?


05-30-2020 03:29 AM #6 nickpeplow (AMC Alumnus)
Pages pops up from Hosting or CND?!

A dynamic value could be something like the users location, phone model or ISP.

With a little bit of work, these can easily be done in JavaScript so there won’t be able coaching issues to worry about. Most trackers have examples to pass/display these values if you’re using a redirect.

BunnyCDN has what they call “storage zones” where you can upload the files and html. Pretty typical service that most CDNs offer. Personally I’d spun up a cheap server on cloudways to store the files as it’s a bit easier to control.


Home > Programming, Servers & Scripts > Hosting, Servers & Security