Microsoft Power Pages- Content Delivery Network Cache

Introduction

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. 

  1. Go to Power platform Admin Center.
  2. Navigate to Environments.
  3. Select the Environment where Power Pages is created.

4. Select the Portal in Resources.

5. Select the Purge Cache button.

Cache Configuration

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. 

  1. Go to Power Apps Maker Portal.
  2. select the environment where the portal is created.
  3. Click on the Apps, in the left pane.
  4. Select the Portal Management Apps,
  5. 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 📖!

Happy Power365ing!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.