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.
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