Users will be able to manage, control, and distribute large volumes of software across multiple locations using the CDN feature. There are two types of redirects in Artifactory that help in the faster download of packages. Depending on the configuration, any packages larger than 200KB will be redirected to one of the following:
- S3 redirect
- CDN redirect
The S3 redirect is the default redirect that is enabled for all SaaS servers with AWS as the cloud provider. This feature is supported on the Cloud (SaaS) platform, with an Enterprise X or Enterprise+ license.
The CDN feature (Enable CDN Download) needs to be enabled at the repository level, it can be enabled in 2 ways:
1. UI: from the advanced tab under the repository configuration as shown below:
2. Using the Update Repository REST API: In the JSON when running the REST add this additional field: "cdnRedirect": true
Full example below:
{
"key":"test-nuget-local",
"packageType":"nuget",
"description":"",
"notes":"",
"includesPattern":"**/*",
"excludesPattern":"",
"repoLayoutRef":"simple-default",
"enableComposerSupport":false,
"enableNuGetSupport":false,
"enableGemsSupport":false,
"enableNpmSupport":false,
"enableBowerSupport":false,
"enableCocoaPodsSupport":false,
"enableConanSupport":false,
"enableDebianSupport":false,
"debianTrivialLayout":false,
"enablePypiSupport":false,
"enablePuppetSupport":false,
"enableDockerSupport":false,
"dockerApiVersion":"V2",
"blockPushingSchema1":true,
"forceNugetAuthentication":false,
"enableVagrantSupport":false,
"enableGitLfsSupport":false,
"enableDistRepoSupport":false,
"checksumPolicyType":"client-checksums",
"handleReleases":true,
"handleSnapshots":true,
"maxUniqueSnapshots":0,
"maxUniqueTags":0,
"snapshotVersionBehavior":"unique",
"suppressPomConsistencyChecks":true,
"blackedOut":false,
"propertySets":[
"artifactory"
],
"archiveBrowsingEnabled":false,
"calculateYumMetadata":false,
"enableFileListsIndexing":false,
"yumRootDepth":0,
"downloadRedirect":false,
"cdnRedirect":true,
"xrayIndex":false,
"enabledChefSupport":false,
"rclass":"local"
}