-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support fetching assets from CDNs when auto-updating
This commit add the ability to fetch from CDN servers when an asset is fetched as a result of auto-update. If an asset has a `cdnURLs` entry in `assets.json`, the asset will be auto-updated using one of those CDN URLs. When many CDN URLs are specified, those URLs will be shuffled in order to spread the bandwidth across all specified CDN servers. If all specified CDN servers fail to respond, uBO will fall back to usual `contentURLs` entry. The `cdnURLs` are used only when an asset is auto-updated, this ensures a user will get the more recent available version of an asset when manually updating. The motivation of this new feature is to relieve GitHub from acting as a CDN (which it is not) for uBO -- an increasing concern with the growing adoption of uBO along with the growing size of key uBO assets.
- Loading branch information
Showing
2 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters