CDN is one of the best ways to speed up a website because it helps you to reduce internal server requests and improves page loading time.  Read More about CDN here: https://en.wikipedia.org/wiki/Content_delivery_network

Using a CDN (Content Delivery Network) is very important to give fast content delivery to your readers. In this regards Google Drive have played a really powerful role in delivering fast content to your website users.

If you are reading this article you will find how to use Google drive as ess CDN and it is best way to make a site fast.

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 we would like to suggest you, Host you static files on Google driver and save your bandwidth apart form this, enjoy the page speed.

How to use Google Drive as CDN

  1. Login in to your gmail and access you Google drive and create a folder. Once created the folder right click on it , from the list of options select Share
  2. A Dialog Box will appear.Click on Advance (Another Dialog Box will Appear).
  3. Click on Change in front of Private – Only you can access (Another Dialog Box will Appear).
  4. Select First Option On-Public on the web and hit Save Button.
  5. Now your new folder is CDN folder and it can accessible without login
  6. 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.
  7. 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"/>