What are CDN Best Practices?

Posted by Wild Thing on Stack Overflow See other posts from Stack Overflow or by Wild Thing
Published on 2010-04-24T12:44:56Z Indexed on 2010/04/24 12:53 UTC
Read the original article Hit count: 201

Filed under:
|

Hi,

I have recently started using the Rackspace Cloudfiles CDN (Limelight), about which I have some questions:

  1. I am using jQuery, jQuery UI and jQuery tools in addition to custom JS code. Also, my site is written in ASP.Net, which means there is some ASP.Net generated JS code.

Right now what I have done is that I have combined all of the js (including the jquery code), except the ASP.Net generated JS into one file. I am hosting this on the Rackspace CDN.

I am wondering if it would make more sense to just get the jQuery, jQuery UI files from the Google hosted CDN (which I suspect would work very well in serving these files, since they will be in many users' cache already)?

This would mean one extra HTTP request, so I'm not sure if it'll help.

  1. Right now I have multiple containers for my assets. For example, in Rackspace I have 3 containers: JS, CSS and Images. The URL subdomain for all 3 is different. Will that lead to a performance penalty? Should I just use one container (and thus one domain for the CDN)?

  2. Is there a way of having the MS ASP.Net generated JS loaded from MS CDN? Would this have a performance hit as per the above question?

Thanks in advance, WT

© Stack Overflow or respective owner

Related posts about cdn

Related posts about jQuery