Massimiliano
Top achievements
Rank 1
Massimiliano
asked on 13 Mar 2014, 12:25 PM
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
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
5 Answers, 1 is accepted
0
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
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.
0
Massimiliano
Top achievements
Rank 1
answered on 13 Mar 2014, 01:49 PM
Wow Marin! Amazing... exactly what I was looking for thanks! Will this include the Microsoft Ajax stuff as well?
0
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
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.
0
Massimiliano
Top achievements
Rank 1
answered on 13 Mar 2014, 03:04 PM
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)
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)
0
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,
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.