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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -