CdnSettingsKetticCdn Property |
Namespace: Kettic.AspNet.Controls
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.com | Kettic ASP.NET controls scripts |
aspnet-skins.ketticstatic.com | Kettic ASP.NET controls skins and images |
Host name (HTTPS) | Served content |
---|---|
https://d2i2wahzwrm1n5.cloudfront.net | Kettic ASP.NET controls scripts |
https://d35islomi5rx1v.cloudfront.net | Kettic 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 setting | Maps to |
---|---|
Kettic.ScriptManager.KetticCdn | KaxScriptManager.CdnSettings.KetticCdn |
Kettic.ScriptManager.KetticCdn.BaseUrl | KaxScriptManager.CdnSettings.BaseUrl |
Kettic.ScriptManager.KetticCdn.BaseSecureUrl | KaxScriptManager.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.