ARTIFACTORY: CDN redirect in JFrog Cloud

ARTIFACTORY: CDN redirect in JFrog Cloud

AuthorFullName__c
Divija Kandukoori
articleNumber
000005354
ft:sourceType
Salesforce
FirstPublishedDate
2022-07-28T08:22:34Z
lastModifiedDate
2022-07-28
VersionNumber
2

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:

  1. S3 redirect
  2. CDN redirect
The S3 redirect is the default redirect that is enabled for all SaaS servers with AWS as the cloud provider. The CDN feature is available for Enterprise+ and Edge licenses only. 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:

User-added image
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"
}