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

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

Property Value

Type: KetticCdnMode
KetticCdnMode.Disabled if the skins 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 skins 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

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

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

Application settingMaps to
Kettic.StyleSheetManager.KetticCdnStyleSheetManager.CdnSettings.KetticCdn
Kettic.StyleSheetManager.KetticCdn.BaseUrlStyleSheetManager.CdnSettings.BaseUrl
Kettic.StyleSheetManager.KetticCdn.BaseSecureUrlStyleSheetManager.CdnSettings.BaseSecureUrl

For example:

<appSettings><br /> <add key="Kettic.StyleSheetManager.KetticCdn" value="Enabled" /><br /> <add key="Kettic.StyleSheetManager.KetticCdn.BaseUrl" value="http://myserver" /><br /> <add key="Kettic.StyleSheetManager.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