1
Vote

Cause avatar to update

description

In your view, there is a hint to reload the browser page if the newly uploaded avatar does not update. A technique I learned somewhere is just to append something unique to the image url. i.e....
 @Html.Image( Model.FileUrl + "?" + DateTime.UtcNow.Ticks,  [....]
The browser will not used the cached image cause the url is different everytime.

comments

Piedone wrote Jun 16, 2013 at 9:34 PM

Good idea, will look into this.