Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vednig/opencdn

Set-up Your Own Content Delivery Network
https://github.com/vednig/opencdn

cache cdn cloudflare css html opencdn php static-js static-site

Last synced: 9 days ago
JSON representation

Set-up Your Own Content Delivery Network

Awesome Lists containing this project

README

        

# OpenCDN
Notice: OpenCDN is not a proper CDN but rather a way for small sites and startups to keep delivering content even in case of low traffic.
When you have gathered enogh traffic consider switching.

OpenCDN way for Non-Popular static JS , CSS and HTML.
To create your own CDN.And deliver content faster.

**Why was it needed?**

When using a popular CDN service like fastly or cloudflare your content has time limitations if traffic comes after a specific time again.
Still it will take same time for it to work.To prevent this situation an alternative was created as a php program.For example, add files on all 3 servers but on connection of client it will accept the file from the nearest server.

**How to Use:**

Add files insert.php and result.php to your servers.

Distribute your content to all the servers.

Save nearest server I.P. or Hostname to the user in localstorage.

Now Cache the common scripts in local storage.(Optional)

Each time a content is requested relocate to the nearest Host or I.P.