No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main
vendor
.gitignore
LICENSE.txt
README.md
makefile

README.md

cdn77-refresh

Getting started

CDN77 is a content delivery network run by DataCamp Limited (UK). CDN77 API allows you to run a wide range of commands and tasks from an external script or server on CDN77.

The basic idea of this tool is to make CDN77 aware that there is new content available, so it removes ("purges") all data for a specific site / CDN resource from CDN77, tries to fetch sitemap.txt, and make CDN77 preload the content of the URLs found.

Building and dependencies

UPX and Unix make are required to build.

We aim for deterministic builds, so all dependencies are part of this repository. The dependencies are:

Running

cdn77-refresh --login=LOGIN --token=TOKEN --site=SITE
  • --login Account name (email address) for CDN77
  • --token API Token, needs to be generated in the profile section on client.CDN77.com
  • --site "CDN Resource" in CDN77

Typical run for www.mycompany.com would be:

Reading resource list from CDN77 ... ok
Searching for www.mycompany.com ... resource id <1234>
Starting 'purge-all' ... ok
Fetching sitemap from http://www.mycompany.com/sitemap.txt ... ok
Starting 'prefetch' of 'http://www.mycompany.com/index.php' ... ok
(...)

Reference

License

Released under the MIT License