Content Delivery Network (CDN) is a distributed network of servers that can efficiently deliver web content to users. CDN’s store cached content on edge servers in point-of-presence (POP) locations that are close to end-users, to minimize latency.
CDN will be stored and served from the CDN server closest to your location, static content like images, scripts, and style sheet files are used in designing portal websites.
NOTE: You need to be a Portal Administrator to enable the CDN. This feature is available for the Power Apps Portal. If you’re using the Add-on license then you can’t enable CDN. Trial portals aren’t supported for CDN. You can’t enable the CDN for portals configured with a custom domain during the preview.
Content Delivery Network (CDN) – Clear cache
Static website contents are in CDN servers across geographical locations. You can clear the cached content using the Purge cache button. This action will clear the cache from the CDN server and portal website.
- Go to Power platform Admin Center.
- Navigate to Environments.
- Select the Environment where Power Pages is created.
4. Select the Portal in Resources.
5. Select the Purge Cache button.
Static files are cached based on the file extensions stored in Web files table of Portal Management app. By default, CDN will cache the file with extensions ‘css’, ‘js’, ‘png’, ‘svg’, ‘jpg’, ‘ico’, ‘woff2’, ‘gif’, ‘ttf’, ‘woff’, ‘eot’, ‘otf’, ‘tts’, ‘jpeg’, ‘7z’, ‘mp3’, ‘mp4’ in the edge server. A maker can override the default list by updating the site settings.
- Go to Power Apps Maker Portal.
- select the environment where the portal is created.
- Click on the Apps, in the left pane.
- Select the Portal Management Apps,
- Navigate to site settings.
6. Update/Add ContentDeliveryNetwork/FileExtensions with the list of file extensions to be cached.
Only files part of the web page accessible by the anonymous user will be stored in the CDN servers, authenticated files will always be delivered from the application server. The administrator can configure the list of static files to be stored in servers based on their file extensions
Hope you learn something, Thanks for Reading 📖!