Google Drive as Free CDN?

CDN stands for Content Delivery Network. The goal of a CDN is to serve content to end-users with high availability and high performance.Which will deliver 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).

Here I am going to show, How to use Google Drive Site Publishing Feature?

As we already knew Google has several servers across the globe, so we can ensure that file delivery by Google servers is much faster than shared hosting.So I would like to suggest you, Host your static files on Google driver and save your bandwidth apart from this, enjoy the page speed.Faster page loading will improve your site ranking in Google search engine(Google considers the website speed for rankings).

Login in to your gmail and access you Google drive and create a folder. I have named the folder arjunphp .once created the folder right click on it , from the list of options select Share >> Advanced(in the new modal) >> Change(in the new modal) >> on - public on the web option.

Now ‘arjunphp’ is my CDN folder, it can accessible with out login, but you need folder ID ,you can grab it form the URL,
, Here ‘0Bw3I85L3lyM0fk5oQ05TWGc4dkFBY0REcUFPaGd3WVpBcjVZMERQN1d5M0FaYjQzV3h5Z2M’ is folder ID.

Now upload your files to your CDN folder , and access it as shown below[FolderID]/path/to/file.type

That is it.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets. Protection Status