Forum Discussion
Getting the Office 365 Private CDN to work
Hi Jason Warren,
private CDN works automatically for publishing pages if it refers assets from the CDN origins. This is fully automatic and built in the page processing. Private CDN also works for certain web parts automatically, like defined in the blog post under "Publishing Feature Auto-Rewriting to CDN URLs".
Private CDN capabilities will be currently gradually enabled in the tenants using our release rings, first for first release tenants.
You can see privatecdn.sharepointonline.com as prefix for the assets coming through this process.
- Joseph AckermanMay 09, 2017Iron Contributor
BUMP.
I am having the same issue that Jason and Steve are having. I know the URL rewriting is *supposed* to be automatic but it is NOT working. I watched your video, read all the blog posts carefully and followed all of the steps.
I've enabled CDN at the tennant and created the origins:
I've made sure that I've got a major version published, and that "everyone" has read permissions in the document library:
I've put a relative path into the image link property of the image web part on my page:
The page is published. Now it shows up on the page...
But NOT with the rewritten URL (i.e. it's not coming from the CDN):
Does a Private CDN have to be in the same site collection? Or am I somehow misinterpreting how the Origin library path needs to be specified (either when setting it up or when attempting to consume files from it)? Or perhaps there is something else?
A public CDN will be a non-starter for my client, and they don't want to do SPFx if it requires a CDN they have to pay extra for (like Azure, for example), so I really need to make the Private CDN work.
- Jason WarrenApr 26, 2017Copper Contributor
OK.
I have a site collection with a library that is added as a private CDN origin. In the library are JPEG and PNG files. https://tenant.sharepoint.com/sites/examplesc/imageslibrary. Origin: */imageslibrary
I have a pages library with pages. I add a new page and on that page I add a CEWP. In the CEWP I insert an image that is stored in imageslibrary.
I save the page, publish it, and browse to the page. The image loads from https://tenant.sharepoint.com/sites/examplesc/imageslibrary using http/1.1
What am I missing? How do I get it to perform the automatic rewrite?
- Steve BorgwardtApr 28, 2017Brass Contributor
I just wanted to mention that I tried using a Private CDN only and followed the exact steps in the video and it doesn't work either.
I created a publishing site, added a new doc library as a Private CDN Origin - "sites/cdn/cdn" where i have a site called cdn and doc library called cdn
I made sure the image was published as a major version and tried a few options with the page - Page layout with image on left, and also inserting web part with image.
I thought it was a delay, but still after a few days the URL's for the images still show directly from SharePoint and not the Private CDN URL
Thanks