CDN for images - multiple hostnames?

Discussion in 'HTML & Website Design' started by Triexa, Feb 17, 2011.

  1. #1
    I am working on some new pages using smarty and right now I am referencing the images via:

    {$smarty.const.CDN_IMG}/image_name.jpg

    I'm wondering if there is any benefit to instead using:
    {cdn for="img"}/image_name.jpg

    the cdn plugin can return a random hostname for the image. This gets around the issue that the browser only has X parallel downloads from a hostname. Now there are different hostnames so in theory it would download faster? Flipside issue is now the image on the next page may be requested from a different hostname and therefore not cached. Might have to figure out how to keep it constant for a given image path on the CDN...

    Can anyone comment on this approach? Is it a realizable increase in speed to use random/multiple hostnames to serve the images (and css, js) off of the CDN?
     
    Triexa, Feb 17, 2011 IP