Hide

YetaWF Documentation

Display
Print

Content Delivery Network Support

Content Delivery Network (CDN) support is built into YetaWF.

CDN support is enabled using Admin > Settings > Site Settings, CDN tab (standard YetaWF site).

CDN For Components

You don't need your own CDN to take advantage of the built-in support for some of the major components used by YetaWF. By enabling "Use CDN (Global Addons)", components are delivered from the CDN provided by these components.

Site Settings CDN Tab

When changing the "Use CDN (Global Addons)" setting, the site (and all instances) must be restarted for this setting to take effect. The "Current Status" property below the "Use CDN (Global Addons)" setting shows whether the CDN is currently used.

This is typically only used for production sites. Application.P.YetaWF_Core.UseCDNComponents in AppSettings.json must be set to true for this setting to be honored, otherwise a CDN is not used for 3rd party components. It is recommended to use AppSettings.json to enable/diable this setting for development and enable it in Site Settings. That way the setting doesn't have to be manually changed before deploying a site.

CDN For Site Contents

If you want to serve your site contents (pages, images, etc.) from a CDN, you will have to set up an account with one of the CDN providers. This account will need to be configured for your site, details vary depending on the provider.

Your CDN will have URLs which map to your YetaWF site. These URLs are entered in the CDN tab settings ("CDN URL" and "CDN URL (Secure)"). The "Use CDN (Site Content)" setting must be selected.

Site Settings CDN Tab

This is typically only used for production sites. Application.P.YetaWF_Core.UseCDN in AppSettings.json must be set to true for this setting to be honored, otherwise a CDN is not used for site content. It is recommended to use AppSettings.json to enable/disable this setting for development and enable it is Site Settings. That way the setting doesn't have to be manually changed before deploying a site.

If "Use CDN (Global Addons)" is enabled, components will be served from the CDNs provided by these components and your site content is served from your CDN. If "Use CDN (Global Addons)" is disabled, components and your site content are both served from your CDN.

Static Files Domain

If a CDN is not used for site content, you can optionally use a separate (sub)domain to serve static files. This is recommended for static files so requests for these files don't use cookies, which minimizes traffic. This site must be defined in IIS and point to the same location where the main site is located.

Site Settings CDN Tab