javascript - show image from chache browser -
var timestamp = new date().gettime(); $("#caplogin").attr("src", "image/captcha/captchacontrol.aspx?id="+timestamp); or
$("#caplogin").attr("src", "image/captcha/captchacontrol.aspx?id="+math.random()); but still shows duplicate image in successive application
to prevent page being cached on browser, try adding these lines header:
<meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="0">
Comments
Post a Comment