Create a subdomain for images

Discussion in 'DNS/Domain names' started by cashrolls2, Jul 6, 2011.

  1. Last edited by a moderator: Oct 14, 2015
  2. Why not?

    Really though, a subdomain to serve images is kind of unnecessary when everything is running from the same home directory on the server. Images served from a subdomain on large sites are typically coming from a completely different server or cloud storage somewhere outside of the web server.
     
  3. Actually, it is a good idea. Most browsers will issue only 7 get requests at a time per server name. That number will change here and there but lets use it for now. Assume a site with 30 assets. The 7 requests are made and the 8th will not be initiated until a new connection from the pool is available. If request something using a different name however, you avoid this issue.

    So in this scenario, the 7 assets are requested and worked on WHILE 7 images are requested and worked on.
     
  4. Sorry forgot to answer the question. Your not doing redirection. All you need to do is reference the image with the subdomain.

    to clarify:

    www.domain.com/images/pic.jpg
    domain.com/images/pic.jpg
    sub.domain.com/images/pic.jpg

    All point to the same place server side. Its the browser we are trying to fool.
     
  5. Well there you go.
     

Share This Page