Office 365 Content Delivery Network (CDN) Quickstart
For more detailed information guidance see Use the Office 365 Content Delivery Network (CDN) with SharePoint Online.
The Office 365 CDN is only available to tenants in the production (worldwide) cloud. Tenants in the US Government, China and Germany clouds do not currently support the Office 365 CDN.
Use the Page Diagnostics for SharePoint tool to identify items not in CDN
You can use the Page Diagnostics for SharePoint tool browser extension to easily list assets in your SharePoint Online pages that can be added to a CDN origin.
The Page Diagnostics for SharePoint tool is a browser extension for the new Microsoft Edge (https://www.microsoft.com/edge) and Chrome browsers that analyzes both SharePoint Online modern portal and classic publishing site pages. The tool provides a report for each analyzed page showing how the page performs against a defined set of performance criteria. To install and learn about the Page Diagnostics for SharePoint tool, visit Use the Page Diagnostics tool for SharePoint Online.
When you run the Page Diagnostics for SharePoint tool on a SharePoint Online page, you can click the Diagnostic Tests tab to see a list of assets not being hosted by the CDN. These assets will be listed under the heading Content Delivery Network (CDN) check as shown in the screenshot below.
The Page Diagnostics tool only works for SharePoint Online, and cannot be used on a SharePoint system page.
The Office 365 CDN is separated into two basic types:
- Private CDN is designed to be used for images (PNG, JPG, JPEG, etc.).
You can choose to have both public or private origins for your organization. Most organizations will choose to implement a combination of the two. Both public and private options provide similar performance gains, but each has unique attributes and advantages. For more information about public and private CDN origins, see Choose whether each origin should be public or private.
How to enable Public and Private CDN with the default configuration
Before you make changes to the tenant CDN settings, you should verify that it meets compliance, security and privacy policies of your organization.
For more detailed configuration settings, or if you have already enabled CDN and want to add additional locations (origins), please see the section Set up and configure the Office 365 CDN by using the SharePoint Online Management Shell
Connect to your tenant using the SharePoint Online Management Shell:
Connect-SPOService -Url https://<YourTenantName>-admin.sharepoint.com
To enable your organization to use both public and private origins with the default configuration, type the following command:
Set-SPOTenantCdnEnabled -CdnType Both -Enable $true
Output of these cmdlets should look like the following:
Submit and view feedback for