I tried out Office 365 CDN capability feature as per the instruction mention in Office 365 CDN announcement video. I enabled both the public and private Cdn feature and also set libraries as a Cdn origins.

When I refer public Cdn URL for image/JavaScript it works great. When I refer image from private Cdn origin library, its URL doesn't reflect as private Cdn URL. I should get privatecdn.sharepointonline.com as prefix for image instead of asset library path URL.

I also verified list of Cdn origins and they listed out correctly without (configuration pending) indication

Get-SPOTenantCdnOrigins -CdnType Public/Private

Is there a way to make private Cdn works?

  • Make sure that your content has major version published in the Asset library. – Dikesh Gandhi May 5 '17 at 6:11
  • Major version is already published – 111 May 5 '17 at 7:15

that's because you cannot construct a URL for private CDN assets manually. When you make a request for these assets, their URLs are dynamically auto-rewritten.

For Public CDNs, the prefix is shared for all the items in the library / folder, so you can easily reuse the prefix cross all assets stored in same library / folder. e.g.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.