Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vednig/opencdn
- Owner: vednig
- License: mit
- Created: 2020-11-28T12:10:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T17:49:46.000Z (almost 3 years ago)
- Last Synced: 2024-04-20T16:07:30.449Z (7 months ago)
- Topics: cache, cdn, cloudflare, css, html, opencdn, php, static-js, static-site
- Language: HTML
- Homepage: http://opencdn.hstn.me
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.