This is a situation that occurs to each and every web developer who is developing the website.
Being a web developer using Microsoft .Net Framework i found this issue almost every next user it has. So, there are lot of solutions to this problem but I had found one of them is to be a very fine for the website I am developing.
These are Some of the solutions that peoples nearby told me and some I find out in googling.
1) You need to remove the cache while updating the record, so the previous image is removed from the cache.
2)Force loading the web-page once image is updated.
3) Load the image asynchronously only as per the current time.
However I like the last solution, i.e. is as below:
solution:
<img alt="Image" id="imgApp" src="@Url.Content("~/Images/Thumbnails/Apps/" + Model.App.ID + ".png?version=" + DateTime.Now.Ticks.ToString(CultureInfo.InvariantCulture))"
I had done this thing in mvc3 but you can do it any language.
Being a web developer using Microsoft .Net Framework i found this issue almost every next user it has. So, there are lot of solutions to this problem but I had found one of them is to be a very fine for the website I am developing.
These are Some of the solutions that peoples nearby told me and some I find out in googling.
1) You need to remove the cache while updating the record, so the previous image is removed from the cache.
2)Force loading the web-page once image is updated.
3) Load the image asynchronously only as per the current time.
However I like the last solution, i.e. is as below:
solution:
<img alt="Image" id="imgApp" src="@Url.Content("~/Images/Thumbnails/Apps/" + Model.App.ID + ".png?version=" + DateTime.Now.Ticks.ToString(CultureInfo.InvariantCulture))"
I had done this thing in mvc3 but you can do it any language.
No comments:
Post a Comment