I'm looking to setup a cookie-free domain intended to serve static content for a web application, similar to the http://sstatic.net/ site that the stack exchange sites use.
My question is, what optimizations can I make to my IIS 7.5 setup for such a domain? For example, it will never be responsible for anything but serving static content, so would disabling ASP.NET integration be a good move for this site?
Any suggestions or references on setting up such a site with IIS 7.5 would be most welcome.
Edit
Just to clarify, this isn't the ONLY site on the server, so suggested optimizations should target the site level, and not the server-level config.
There are several considerations in this, some which are handled on IIS (HTTP compression, caching headers fx), and some which are handled during the build process / before deployment (such as Javascript and CSS file concatenation & whitespace minification).
As such, it's a bit hard to give you a complete rundown in one answer, as some of it will depend on your build & release methods. In high level steps:
The site is "cookieless" by virtue of you using a new domain, one that is not tied to your webapplication. Since you're not setting any cookies for the domain (using f.x. .NET application code), it's then "cookieless".
You should absolutely enable HTTP compression for static text content such as Javascript and CSS.
I'm not the greatest IIS administrator, but as far as I can tell, you only need the default IIS components associated with the basic "Web Server (IIS)" server role.
You should absolutely enable long caching headers for the static content. The general recommendation is 31 days, but you can set it higher or lower. Remember, if you serve static content with long cache headers, then you must change the URL if you change the file, to avoid old cached content being re-used by the clients.
You should enable HTTP keep-alive (same docs as caching headers).
In addition to this, there are pre-deployement tasks, such as whitespace compressing the Javascript and CSS, and ideally compress PNG's better, etc. This is were your development tools and build cycle helps decide how to proceed.
When you're done, try downloading a few files from your static servers with YSlow enabled. I find that the "Classic V2" ruleset gives the biggest impact for the effort, so I would suggest check your score against this YSlow ruleset.
Of the "Classic V2" ruleset, these rules apply cleanly to your static server IIS instances & content:
There's a very interesting write up here where someone is using IIS to serve static files. It mainly concentrates on tweaking the IIS file caching settings to limit disk activity (which was his bottleneck). He says he's seen a 20x increase in performance.