Click or drag to resize
CdnSettingsKetticCdn Property
Gets or sets a value indicating whether to use the Kettic CDN network to load control scripts.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public virtual KetticCdnMode KetticCdn { get; set; }

Property Value

Type: KetticCdnMode
KetticCdnMode.Disabled if the scripts should be loaded from the assembly or registered manually; KetticCdnMode.Enabled if the Kettic CDN should be used. KetticCdnMode.Auto value is determined from ScriptManager.EnableCdn for .NET 4.0; For earlier versions of ASP.NET the value is set to Disabled.
Remarks

By default the Kettic CDN is not used. If you enable it the scripts will be loaded from the Kettic CDN.

The Kettic CDN is hosted on Amazon CloudFront. This is a global content delivery service with edge locations in US, Europe and Asia. It automatically routes requests to the nearest location, so content is delivered with the best possible performance.

The Kettic CDN uses the following host names:

Host name (HTTP)Served content
aspnet-scripts.ketticstatic.comKettic ASP.NET controls scripts
aspnet-skins.ketticstatic.comKettic ASP.NET controls skins and images
Host name (HTTPS)Served content
https://d2i2wahzwrm1n5.cloudfront.netKettic ASP.NET controls scripts
https://d35islomi5rx1v.cloudfront.netKettic ASP.NET controls skins and images

KaxScriptManager only manages the control scripts. See KaxStyleSheetManager for enabling CDN support for the control skins.

You can globally configure CDN-related settings from web.config by using the following application settings:

Application settingMaps to
Kettic.ScriptManager.KetticCdnKaxScriptManager.CdnSettings.KetticCdn
Kettic.ScriptManager.KetticCdn.BaseUrlKaxScriptManager.CdnSettings.BaseUrl
Kettic.ScriptManager.KetticCdn.BaseSecureUrlKaxScriptManager.CdnSettings.BaseSecureUrl

For example:

<appSettings><br /> <add key="Kettic.ScriptManager.KetticCdn" value="Enabled" /><br /> <add key="Kettic.ScriptManager.KetticCdn.BaseUrl" value="http://myserver" /><br /> <add key="Kettic.ScriptManager.KetticCdn.BaseSecureUrl" value="https://myserver" /><br /> </appSettings><br />

Note: Ensure that your customers have unlimited access to the ketticstatic.com domain before turning on this feature.

See Also