Enable CDN in your Office 365 tenant
https://support.office.com/en-us/article/use-the-office-365-content-delivery-network-with-sharepoint-online-bebb285f-1d54-4f79-90a5-94985afc6af8
Connect-SPOService -Url https://contoso-admin.sharepoint.com
Get-SPOTenantCdnEnabled -CdnType Public
Get-SPOTenantCdnOrigins -CdnType Public
Get-SPOTenantCdnPolicies -CdnType Public
Set CDN Public
Set-SPOTenantCdnEnabled -CdnType Public
Get-SPOTenantCdnOrigins -CdnType Public
Set CDN Private
Set-SPOTenantCdnEnabled -CdnType Private
Get-SPOTenantCdnOrigins -CdnType Private
Set both CND Private and Public
Set-SPOTenantCdnEnabled -CdnType Both -Enable $true
Set CDN Public
Set-SPOTenantCdnEnabled -CdnType Public
Get-SPOTenantCdnOrigins -CdnType Public
Set CDN Private
Set-SPOTenantCdnEnabled -CdnType Private
Get-SPOTenantCdnOrigins -CdnType Private
Set both CND Private and Public
Set-SPOTenantCdnEnabled -CdnType Both -Enable $true
To change the list of file types to include in the Office 365 CDN
Get-SPOTenantCdnPolicies -CdnType <Public | Private>Set-SPOTenantCdnPolicy -CdnType <Public | Private> -PolicyType IncludeFileExtensions -PolicyValue "<Comma-separated list of file types>"To add an origin for your assets
Add-SPOTenantCdnOrigin -CdnType <Public | Private> -OriginUrl <path>https://www.c-sharpcorner.com/article/deploy-sharepoint-framework-client-side-web-parts-to-office-365-cdn/
Comments
Post a Comment