I have an app running on a windows webserver 2008. It generates thumbnails which are then cached on disk.
But loading these static thumbnail images takes a bit long, as I dont have a slow connection. For example, Firebug tells me that most thumbnails (size between 30 - 50 kb) take between 600 ms and 1.2 second to load. And almost the whole time is spent while "waiting for response". Therefore I suspect that the server is responding too slow. Is there a way to optimize the serving of static content via IIS 7?
Newer browsers (IE8, Chrome) have upped the max number of connections per server to 6 which is a good trend.
However, to get around the 2 connection limit (without requiring a browser config change) a trick you can use is to create multiple CNAMES (aliases) in dns that point to your web server. Then in your app you generate the image tags with patterned (or random) HREFs that utilize all of your. This tricks the browser into thinking that the images are coming from different sources and then will open more than 2 connections to your site at one time. This won't necessarily help your serve time for a single image, but for your overall page load time it should provide you some relief.
You would need to consider a couple of things before employing this technique:
There are a ton of posts are there that explain this technique in detail. Here is a good one from DevCentral:
The third greatest (useful) hack in the history of the Web
I'm not sure about IIS 7 but you should probably have the images loading from a different domain that way the browser can try to load them in parallel. A browser (depending on browser) will only try to load 2 files from 1 domain at a time. I believe firefox will try to load up to 6 files at once if they're from different domains. I also recommend lighter webservers for static content, like nginx. I realize it may not be the answer your looking for but maybe it will help.