Hosting static images on subdomain
What are the benefits of hosting your images on a subdomain such as "img.domain.com"? If you're not on 开发者_运维问答a CDN is there any real benefit to this?
Update
So doing this with CSS and JS files would also serve the same purpose?
It can trick browsers to download with more 'pipes' of bandwidth. Say, the maximum of same downloads on a domain was three, hosting the images on another subdomain would effectively increase that to six.
The browser also doesn't have to send and receive cookies in the header, so it will go faster in that regard also.
You can direct the subdomain to a different server, that is running a lighter weight web daemon such as nginx or lighthttpd. Then, you are not burdening the main, number crunching server with all the extra requests for static images.
精彩评论