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
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" }