+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Telerik CDN for HTTPS protocol in Sitefinity MVC website

Telerik CDN for HTTPS protocol in Sitefinity MVC website

4 posts, 0 answered
  1. Zepp
    Zepp avatar
    22 posts
    Registered:
    19 Aug 2015
    23 Jun
    Link to this post
    The telerik web.ui.resource.axd is almot 3.5 mb and was taking too much time to load. My site's pages are built using MVC controllers & views & therefore I have no
    RadScriptManager that I know of in my application pages. After doing a ctrl+shift+f of RadScriptManager I could only find one tag in Sitefinity>Prototype>.??. directory
    which I think is not being used and is just a template by Sitefinity (Correct me if I am wrong).

    The only option of me enabling CDN for this telerik.web.ui.resource.axd was to enable it from project's web.config.
    My web.config had the following tag for appSettings :

    <appSettings file="App.config">
    </appSettings>


    I changed it to this :
    <appSettings file="App.config">
       <add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="https://d2i2wahzwrm1n5.cloudfront.net" />
       <add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="https://d2i2wahzwrm1n5.cloudfront.net" />
    </appSettings>


    I also added the same entries in App.config just to be sure that it works. However, the resource was still not being fetched from CDN.

    Finally I got it working by enabling CDN from Sitefinity's backend > Administration> Settings > Advanced > ..??..

    Now the files are being fetched from CDN BUT they are being fetched from HTTP protocol sites. My site is deployed under HTTPS protocol which means that these scripts
    from CDN get blocked by browser until explicitly enabling them from browser, which is not an option to be left for the end users to allow the scripts each time they access the site.


    I want to ask, Where do I have to explicitly tell Sitefinity to fetch from HTTPS CDN AND why is the appSettings tag approach not working for me & why the CDN only started working after
    I enabled it from Sitefinity's backend settings?

    Also, If I dont have any RadScriptManager on my site except for the one place mentioned above, because my site's pages are built using MVC, where do I have to add the
    attribute of enabling CDN for individual RadScriptManagers if adding them in web.config does not work as explained above.

    Kindly guide me through this. The production site is taking too much time to load, Almost 2 minutes when accessed for the first time.

    Regards,
    Zepp
  2. Zepp
    Zepp avatar
    22 posts
    Registered:
    19 Aug 2015
    26 Jun
    Link to this post
    Any one?
  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    28 Jun
    Link to this post
    Hi Zepp,

    The issue seem related to that KB article:
    http://www.sitefinity.com/developer-network/knowledge-base/details/increased-load-times-because-of-kendoui-javascript
    You can also try to change the cdn reference to 'https' under Advanced settings » Pages » Script Manager » Script References for the library you need, e.g. Kendo All.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Zepp
    Zepp avatar
    22 posts
    Registered:
    19 Aug 2015
    29 Jun in reply to Svetoslav Manchev
    Link to this post

    Thanks Svetoslav Manchev. I was able to change the CDN links to https protocol by clicking on Jquery & Kendo libraries from the left hand pane of Advanced Settings > Pages > Script Manager.

    Thanks. Can we cache them for future calls also. So that the browser loads them from cache if its already loaded once to improve the performance a bit more?

4 posts, 0 answered