CDN stand for Content Delivery Network. The goal of a CDN is to serve content to end-users with high availability and high performance. Which will delivers the files from the nearest server based on the geographic locations of the user. There are free and paid CDNS are available in the market(EX: cloudflare for Free,MaxCDN for paid).
Read More about CDN HERE : https://en.wikipedia.org/wiki/Content_delivery_network
Here i am going to show you How to use Google Drive as free CDN ?
As we already knew Google has several servers across the globe, so we can ensure that file delivery by Google servers is much more faster then shared hosting.So i would like to suggest you, Host you static files on Google driver and save your bandwidth apart form this, enjoy the page speed.Faster page loading will improve your site raking in Google search engine(Google considers the website speed for rankings).
So Follow These Below Steps :
- Login in to your gmail and access you Google drive and create a folder. I have named the folder
shared_folder.once created the folder right click on it , from the list of options select Share
- A Dialog Box will appear.Click on Advance (Another Dialog Box will Appear).
- Click on Change in front of Private – Only you can access (Another Dialog Box will Appear).
- Select First Option On-Public on the web and hit Save Button.
shared_folderis my CDN folder, it can accessible without login
- Now upload your files to your CDN folder , to use files out of google drive you need File ID of each file.To Find that ID just right click on selected file that are in your shared folder and click on Share (a Dialog Box will Appear). Here you can see File ID & sharing link .Just Copy That and Use it Wherever you want.
- If you want to show images on your website from google drive then just copy FILE ID not whole link and use it like this :
<img src=”https://drive.google.com/uc?export=view&id=0B7aEKHxTUkvPbEtNdDBKaVB3aGc” alt=”image from google drive”/>
Hope it will Help You and please like my facebook page :
and make me proud.By the way if you face any problem then let me know in comment section below