Use a timestamp to solve the ie cache problem

  • 2020-03-30 03:44:52
  • OfStack

In the development test, if you choose ie, when editing a piece of data, and then go back to edit, you will find that the data is the same as before without editing, this and in this case, to solve the problem of ie cache. My solution is to add a timestamp to the request link to avoid this problem.


var getTimestamp=new Date().getTime(); //Time stamp
var _url = "${pageContext.request.contextPath}/productData/addShow.do?productDataId="+value+"&timer=" + getTimestamp;


Related articles: