title: AJAX response is being cached
body: <p>Once again I am posting the question similar to previous one but this time my problem is different. As said the code is as follows:</p>
  
  <pre><code>$.ajax({
              type:"POST",
              url: 'sample.php',
              data:"data="+data,
              success: function(server_response) { 
              $('.functions').ajaxComplete(function(event, request){
  
                if(server_response == 0)
                   {
                              var message = 'An email with instructions to reset password has been sent to your email address. Please check it.';
                   }
                else if(server_response == 1)
                  {
                              var message = 'Email address was not found in our database. Please enter a valid email address';
                  }
                else
                  {
                              var message = 'Some problem occured while sending you an email. Please try again.';                                    
                  }
     alert(message);
  
      });
  </code></pre>
  
  <p>The problem is whenever I pass an ajax request the server response received is correct but if above code is executed for multiple times without page refresh multiple dialog boxes are recieved in a stack order. Like if my first response is 0 then the message "An email with instructions to reset ...." is recieved. However if I send the request again without page refresh and this my if my page response is 1 then 2 dialogs are generated with message "Email address was not found in our database." on top and the previous one below. Such stack continues to generate until I refresh the page. I have tried all things such as setting cache to false and all stuff but all in vain. please help.</p>