What is the advantage to hosting static resources on a separate domain?

Posted by Michael Ekstrand on Pro Webmasters See other posts from Pro Webmasters or by Michael Ekstrand
Published on 2012-01-26T05:26:49Z Indexed on 2013/10/26 10:15 UTC
Read the original article Hit count: 285

Filed under:
|

I notice a lot of sites host their resources on a separate domain from the main site, e.g. StackExchange using sstatic.net, Barnes & Noble using imagesbn.com, etc.

I understand that there are benefits to putting your static resources on a separate host, possibly with an efficient static-file web server like nginx, freeing up the main server to focus on serving dynamic content. Similarly, outsourcing to a shared CDN like cloudfront Akamai is logical.

What is the benefit to using a separate domain otherwise, though? Why sstatic.net instead of static.stackexchange.com?

Update: Several answers miss the core question. I understand that there is benefit to splitting between multiple hosts — parallel downloads, slimmer web server, etc. But what is more elusive is why multiple domains. Why sstatic.net rather than static.stackexchange.com as the host for shared resources? So far, only one answer has addressed that.

© Pro Webmasters or respective owner

Related posts about domains

Related posts about cdn