1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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