Create a module that automatically rewrites various tags with a src attribute to use a subdomain. This /sites/all/files/css/mystyle.css
to //data1.example.com/sites/all/files/css/mystyle.css
. Have it handle the following html tags
- link
- style
- script
- img
- iframe
- embed
- ???
If it could get the src elements out from inside the script tags, that would be cool as well. http://www.websiteoptimization.com/speed/tweak/parallel/ - 2 to 3 hostnames seems to give the best results. Subdomain points to same folder as the domain to make life easy. Some kind of smart auto assign based on filesize or something (needs a db table to keep track, so one can take advantage of the browser cache). Also need to address any multisite issues that might arise.
Thoughts, Comments, Ideas, Code?