Today I found out a cool nice thing. As we all know Microsoft ASP.NET Ajax 4.0 is shipped with the new caching support for the JS library it uses. This feature is called the CDN and basically it is working and increasing performance by spreading lots of servers around the world that store JS files like the ASP.NET Ajax 4.0 and the Jquery library files.
From Microsoft: “By taking advantage of the Microsoft Ajax CDN, you can significantly improve the performance of your Ajax applications. The contents of the Microsoft Ajax CDN are cached on servers located around the world”
For a list of all available files check this site.
What if your application is ASP.NET 3.5 and not 4.0 and you are not using or whishing to upgrade to the 4.0 version. Well you can still use the CDN. Microsoft added the 3.5 Js files to the CDN as well.
The 2 files available are the
http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.debug.js
http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js
You can use them by using the Script manager like this:
<asp:ScriptManager ID="SCRIPTMANAGER1" EnablePartialRendering="false" runat="server">
<Scripts>
<asp:ScriptReference Name="MicrosoftAjax.js"
Path="http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js" />
</Scripts>
</asp:ScriptManager>
Enjoy