title: Force browser to re-read ajax result
body: <p>Every day the contents of this request changes: the problem is that the browsers (IE and Chrome for sure), are ALWAYS displaying the OLD result (first get) until I clear the cache!</p>
  
  <p>How can I solve this issue???</p>
  
  <pre><code>$('#q').keyup(function(){
      var param = $(this).val();
      if(param == ''){
          return
      }
  
      if(param != ''){
          $('#p_a').html('');
      }
      $.ajax({
          url: 'ajax.php',
          data: {qty: param},
          type: 'GET',
          success: function(result){
                      $('#p_a').html(result);
                   },
          error: function(result){
                      $('#p_a').html('Error');
                  },
      });
  });
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  if(isset($_GET['qty'])){
      $cq = $_GET['qty'];
      $cq = $link-&gt;real_escape_string($cq);
  
      $GetP = $link-&gt;query("CALL GetPrice($cq)") or die('Query Error');
  
      if(mysqli_num_rows($GetP) === 1){
          while($p = mysqli_fetch_array($GetP)){
              echo $p['values'];
              echo $p['dates'];
          }
      }else{
          echo 'More Rows';
      }
  }
  ?&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Is this jQuery function a/the right/best/good working solution? From the <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow">documentation</a>:</p>
  
  <p><code>cache (default: true, false for dataType 'script' and 'jsonp')
  Type: Boolean
  If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.</code></p>