Microsoft AJAX CDN – Now with SSL Support

Back in September I blogged about the new Microsoft AJAX CDN (Content Delivery Network) service that the ASP.NET team is now providing.  The CDN provides edge caching support for AJAX libraries (including jQuery and ASP.NET AJAX).  The service is available for free, does not require any registration, and can be used for both commercial and non-commercial purposes.  It offers a great way to speed up your external facing web-sites.

SSL Support Now Provided

One of the features in September that we said was coming (but which was not available at the initial launch) was SSL support for scripts served off of the CDN.  This is necessary for scenarios where you have SSL enabled pages on your site, and you want to reference a script library from the Microsoft CDN and avoid a “This page contains both secure and non-secure items” warning message being displayed to end-users visiting your site.

SSL support is now enabled with the scripts hosted on the Microsoft AJAX CDN.  Simply use an “https” moniker with any script references on your site that point to the CDN, and they will now be served over SSL.  For example, below is how you can reference jQuery over SSL:

   <script src="https://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>   

The Microsoft AJAX CDN documentation has recently been updated with more details about it.  You can visit it here to learn more. It lists all of the libraries currently offered via the CDN.  We are steadily adding more libraries to it and will update the page as new ones become available.

Hope this helps,

Scott

P.S. In addition to blogging, I’m also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu

Published Sunday, November 29, 2009 5:55 PM by ScottGu

Comments

# re: Microsoft AJAX CDN – Now with SSL Support

Sunday, November 29, 2009 9:20 PM by alberto

Nice, that was needed.

# re: Microsoft AJAX CDN – Now with SSL Support

Sunday, November 29, 2009 10:03 PM by Aaron Powell

will SSL support be available from the ScriptManager when using in CDN mode?

# re: Microsoft AJAX CDN – Now with SSL Support

Sunday, November 29, 2009 10:50 PM by alessandro

CDN is quite an interesting idea. Good to know that you now provide SSL too.

Thanks

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 2:16 AM by jack.niu

Nice, SSL is more and more popular nowadays. Many web sites prefer SSL for security reason.

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 2:52 AM by Timmy Kokke

Great news! This was the reason we couldn't use the CDN. Updating my code right away ;)

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 5:33 AM by jp

What makes Microsoft AJAX CDN superior from code.google.com/apis/ajaxlibs and/or yui.yahooapis.com?

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 7:03 AM by Socrates470BC

World Wide there are still many users with line speeds unsuited to 400KB library downloads.  Such downloads render page load and response times as unacceptable and may see the user leave without viewing the web content.

Caching such libraries on these edge servers is such a small step forward.

These libraries are relatively small (when comparing browser size to web page size). Caching on the brower would be much quicker and save huge amounts of bandwidth on the web over the long term.

If MS IE9, for example, held libraries locally for Script Manager, jQuery, and some of the commercial component libraries such as Infragistics, Telerik, ComponentOne, DevExpress and one or two others this would totally blow away the corcern of slow loading pages when using such libraries.

Unfortunately, many large company developers are spoiled by their high spec systems and 25Mb/s plus internet speeds. Remember, at the moment these people are still in the minority.

Imagine using a meta tag with a construction similar to:

<script src="browserlocal/jquery/1.3.2/jquery-1.3.2.min.js"

 altsrc="ajax.microsoft.com/.../jquery-1.3.2.min.js"

 type="text/javascript"></script>

Browser manufacturers could decide which libraries/components they would support and it would be fairly straight forward to support multiple versions.

Libraries could be updated via the normal update process, or automatically when the user acceses a particular library that is not already cached by the browser.

This idea was first put forward in Dec-2008 here:

theludditedeveloper.wordpress.com/.../browser-support-for-jquery-infragistics-telerik-component-one-and-other-component-suppliers

The CDN does not offer the performance gains achieved by local browser cached libraries.

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 7:52 AM by markvt

This is a very nice addition to the cdn, i wasn't using it since our visitors would have errors on non https from our https website but this could really help.

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 10:47 AM by Alex P

Good news

PS: starting to hate pingbacks

# re: Microsoft AJAX CDN – Now with SSL Support

Monday, November 30, 2009 9:41 PM by worldspawn[]

Still waiting for jQuery UI!!

# re: Microsoft AJAX CDN – Now with SSL Support

Tuesday, December 1, 2009 8:01 AM by Esben

This is Great! What about the jQueryUI will you add support for this in the future?

# re: Microsoft AJAX CDN – Now with SSL Support

Tuesday, December 1, 2009 11:58 PM by be789

Please consider adding jqueryui.

# re: Microsoft AJAX CDN – Now with SSL Support

Wednesday, December 2, 2009 8:37 AM by Lucifer

Hi Scott

Now many nodes does the CDN have?

Lucifer

# re: Microsoft AJAX CDN – Now with SSL Support

Wednesday, December 16, 2009 3:04 AM by Web Development

AJAX being an important part of web development means a lot to web developers and its support with SSL has made website more secured thanks for posting important stuff

# re: Microsoft AJAX CDN – Now with SSL Support

Wednesday, January 6, 2010 7:34 AM by Portal Development

this is good to hear

# re: Microsoft AJAX CDN – Now with SSL Support

Thursday, January 7, 2010 10:39 AM by Richard

Thanks very much - Every little helps!!

# re: Microsoft AJAX CDN – Now with SSL Support

Tuesday, January 12, 2010 1:26 AM by Ignoramous Rex

Hi Scott

I recently posted a question on the ASP.Net forums regarding the locations of Microft's CDN server locations (mail.google.com/mail):

"I have  a client with branches spread over multiple african countries such as Botswana and Zambia.  Problem is, in Africa download speeds are really slow, and even slower when the website you are connecting to is outside of your country's border (local ISP's "throttle" your bandwidth for international downloads, meaning that your download time increases about ten times).

I am contemplating the possiblity of utilising Microsoft's CDN, but do not want to go through all the trouble if they do not have servers in the countries I am targeting.  

Google does not seem to have any answers.  Can somebody provide some info on Micrsoft's CDN server locations?"

Unfortunately I am not able to perform speedtests from my current location and asking my customers or users to perform these tests is only an absolute last resort (in fact, I don't think its a viable option, but I digress).

Could you or Microsoft possibly provide a list of countries in which your CDN edge cache servers are hosted?

Regards