What is the best way to force an image refresh on a webpage?
问题 I have a an asp.net-mvc site. On one of the pages, I have an image, I use jcrop to allow users to crop the image. When this click submit, I crop the image on the server side and then reload the page. The issue is that the image looks the same as before . . if i hit F5 and refresh the page then the updated image shows up.. Is there anyway to avoid having to force a F5 refresh in this case? 回答1: This is a trick, but it works. Put a variable and random number in the image url. Something like: