This is a migrated thread and some comments may be shown as answers.

Auto serve cacheable .js files without CDN

5 Answers 38 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
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

5 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Mar 2014, 12:39 PM
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.

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
Marin Bratanov
Telerik team
answered on 13 Mar 2014, 02:27 PM
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.

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)
0
Marin Bratanov
Telerik team
answered on 14 Mar 2014, 12:34 PM

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.

 
Tags
ScriptManager and StyleSheetManager
Asked by
Massimiliano
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Massimiliano
Top achievements
Rank 1
Share this question
or