I have been looking into optimizing a website and specifically looking into CSS sprites, and serving static resources from a subdomain (static.mysite.com
). Reference: Split Components Across Domains
We are using cassini (which comes with visual studio) for development and it does not support subdomains. My static resources are contained in the folder www.mysite.com/Contents/Static/..
This works for both cassini and IIS7.
If I should move these static assets to static.mysite.com
, without making much changes in my codebase (references to js/css/images),what would be the most optimal way to do it ?
My concern is the fact that cassini does not support subdomains makes me think I should have 2 code bases ? Or I should somehow change my references to static assets in code base from mysite.com/contents/static
to static.mysite.com
during the build? How do you guys go about it ?
PS:On a side note, it would be nice if you guys can point me to good asp.net performance tuning articles (though google search helps)