Auto serve cacheable .js files without CDN

6 posts, 0 answers
  1. Massimiliano
    Massimiliano avatar
    184 posts
    Member since:
    Oct 2012

    Posted 13 Mar 2014 Link to this post

    I looked around and read stuff but yet I'm a bit confused if and how this is possible.
    What I'm trying to achieve is to avoid using CDN and serve lokal resources but as .JS files so to be able to cache them with public caching on the browsers.
    I know this could be handled if you manually specify wich .js resources to serve for each control but is there a way to obtain the same thing automatically, just like what happens when you use CDN, only serving the files locally?

    Thanks in advance
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 13 Mar 2014 Link to this post

    Hello Massimiliano,

    You can create your own (local) CDN provider as explained here: http://www.telerik.com/help/aspnet-ajax/cdn-custom-provider.html.


    Regards,
    Marin Bratanov
    Telerik

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Massimiliano
    Massimiliano avatar
    184 posts
    Member since:
    Oct 2012

    Posted 13 Mar 2014 Link to this post

    Wow Marin! Amazing... exactly what I was looking for thanks! Will this include the Microsoft Ajax stuff as well?
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 13 Mar 2014 Link to this post

    Hello Massimiliano,

    It is good to hear this fits your needs.
    On the MS AJAX scripts - I am afraid that our CDN only provides for our own scipts and MS AJAX is not included. It will still be downloaded via a webresource request. Note that the URL to this request will be the same untill the app pool is recycled, so this also allows for caching.
    What you can also consider is including the MS AJAX scripts locally, as advised here: http://damianblog.com/2006/11/27/scriptmanager-scriptpath/ but I cannot guarantee this will work.

    Regards,
    Marin Bratanov
    Telerik

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

  6. Massimiliano
    Massimiliano avatar
    184 posts
    Member since:
    Oct 2012

    Posted 13 Mar 2014 in reply to Marin Bratanov Link to this post

    Thank you for your patience and suggestions.
    One last question... will the custom provider work for RadStyleSheetManager as well? I didn't find anything in the on-line reference (similar to the one you pointed me to for RadScriptManager)
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 14 Mar 2014 Link to this post

    Hi,

    The same approach should work for the RadStyleSheetManager as well. The CDN resource package you can download from your account contains the skins as well, and the CDN properties are the same like in the RadScriptManager.

    We will also look into improving the documentation.


    Regards,

    Marin Bratanov
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017