CDN and outputcompression

4 posts, 1 answers
  1. avner
    avner avatar
    11 posts
    Member since:
    Feb 2008

    Posted 20 Feb 2012 Link to this post

    Hi,

    A few questions around CDN and OutputCompression for script and stylesheet manager:

    - I was wondering: when CDN is enabled will the OutputCompression property be disregarded? This is on version  2010.2.
    - Can you show me how to set CDN settings programatically - in the code-behind?
    - Related to previous, I tried adding: <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />   to my config, but appears to be ignored. My appsettings is in an external config file.

    regards,

    Avner
  2. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 Feb 2012 Link to this post

    Hi avner,

    RadScriptManager/RadStyleSheetManager's OutputCompression property currently works always with or without CDN (we will fix it so that it can be disabled with CDN as it now does not work).

    Programmatically setting the settings is straightforward - the code follows the structure of the markup you are seeing in this help article, e.g. 
    RSM.CdnSettings.TelerikCdn = TelerikCdnMode.Enabled;

    Finally, the web.config setting has been tested numerous times on our end and this is the first report that says it does not work. Since we have not made modifications to that functionality since it was created, we should now be looking for another cause. Could you send a sample project showing the issue in the support ticket you have opened on the same subject? 

    All the best,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. avner
    avner avatar
    11 posts
    Member since:
    Feb 2008

    Posted 23 Feb 2012 Link to this post

    Hi,

    Another question regarding CDN content. I noticed that JQuery is downloaded as part of the script content. If my site references a later version of JQuery, is this going to conflict, or is the version of JQuery the controls depend on isolated?

    regards,
    Avner
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 28 Feb 2012 Link to this post

    Hi avner,

    Our jQuery version is isolated under $telerik.$ unless you explicitly move it to $ by including the Telerik.Web.UI.Common.jQueryInclude.js script on your page. However, we recently discovered that there is a problem with the latest version of Telerik.Web.UI where $telerik.$ leaks to $. So, with Q1 20120 we have a bug, which we will fix for Q1 2012 SP (or the intermediate internal builds).

    Greetings,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top