i have a avatar loading animation, which is getting swapped for the image when it is loaded :
var avvy = $.trim("/"+this.mycoach.avatar);
this.tmpImg = new Image() ;
this.tmpImg.src = avvy;
$(this.tmpImg).load( function() {
$(contentDiv).find(".photo").css('background-image',"url("+avvy+")");
});
}
it works - after the image is loaded the background is swapped for the avatar. however the browser then sends a new request to the same image....
the image url is like :
/avatar_fb.php?fbid=*****&width=80&height=80&token=3547***52
can i force the browser to cache that image ? or server side code ?