Skip to content
Yet Another CDN.
JavaScript Shell Dockerfile
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
cache put placeholder in cache Mar 31, 2019
docs Update Jul 13, 2019
test global stats test pull correct endpoint Jul 10, 2019
.gitignore fix linter and increase test timeout Apr 4, 2019
LICENSE Initial commit Feb 14, 2017 moved design doc badge Jul 12, 2019
benchmark.js Display verbose tests Mar 17, 2019
config.js istanbul ignore config file May 13, 2019
nodes.json remove double / Jul 10, 2019
package-lock.json Bump koa from 2.7.0 to 2.8.1 Aug 19, 2019
package.json Bump koa from 2.7.0 to 2.8.1 Aug 19, 2019
process.json scaling May 1, 2019
server.js fix typo Jul 10, 2019

Yet Another CDN.

Build Status Coverage Status Design Doc License CDN Hits CDN Data Cache Usage


How to Use

By default the file will be kept in the cache for 24 hours.<uri>

Need to refresh the object more frequently than 24 hours? You can set maxAge manually:<uri>?maxAge=[seconds]


Proxy / CORS Proxy

Can also be used as an effective proxy / CORS proxy by using the proxy endpoint.

How to Use<uri>




Work in progress. Run as root.

> curl -o - | bash
> certbot --nginx


> touch blacklist.txt
> node server
yacdn:server Server listening on port 3000... +0ms
yacdn:server serve#205 url: +5s
yacdn:server serve#205 referer: undefined +1ms
yacdn:cache not in cache +0ms
yacdn:cache lock true +0ms
yacdn:server serve#205 size: 0.02 MB +398ms
yacdn:server serve#205 done, took 404ms +5ms
yacdn:server serve#205 effective speed: 0.04 megabits/s +0ms
yacdn:server serve#206 url: +5s
yacdn:server serve#206 referer: undefined +0ms
yacdn:cache already in cache +5s
yacdn:server serve#206 size: 0.02 MB +2ms
yacdn:server serve#206 done, took 2ms +0ms
yacdn:server serve#206 effective speed: 8.64 megabits/s +0ms


> node benchmark.js - took 32958 ms - took 56222 ms - took 40457 ms
Took 43212ms on average (min: 32958ms, max: 56222ms) - took 21116 ms - took 19269 ms - took 20951 ms
Took 20445ms on average (min: 19269ms, max: 21116ms) - took 25699 ms - took 23810 ms - took 19544 ms
Took 23018ms on average (min: 19544ms, max: 25699ms)

yacdn proxy is 52.69% faster
yacdn serve is 46.73% faster
You can’t perform that action at this time.