tags:

views:

19

answers:

0

To improve page render speed I am looking at implementing image sharding which serves images from the multiple subdomains. How can I ensure that the same image is retrieved from the same server?

I want to avoid a scenario like the one below where the same image is served from multiple domains: images1.domain.com/image1.gif images2.domain.com/image2.gif images2.domain.com/image3.gif images2.domain.com/image1.gif

We are running Java - is there any way to checksum/fingerprint the image-filename and based on that always assign it to the same server?