title: Data requested with ajax always the same
body: <p>There must be some kind of server side cache on my server...</p>
  
  <p>Every time when I am requesting content using jquery ajax i get the same data, even if I replace server side code with</p>
  
  <pre><code>echo('hello, world!');
  </code></pre>
  
  <p>Used configuration:</p>
  
  <ul>
  <li>SuSE Linux</li>
  <li>Apache Server</li>
  <li>PHP 5</li>
  </ul>
  
  <p><strong>What kind of caching could be active?</strong></p>
  
  <p>As you can see, I have implemented two codes to prevent browser caching within the javascript below. The problem is definitely on the server side.</p>
  
  <p><strong>Just for information:</strong></p>
  
  <p>Client side code:</p>
  
  <pre><code>// Add a timestamp to url to prevent browser from caching ajax content
  var date = new Date();
  var timestamp = date.getTime();
  var nocache = '&amp;nocache=' + timestamp;
  
  // Ajax call: get entries, add to entries div
  $.ajax({
      type: "POST",
      url: "jsfeed.php",
      //data: "lastmsg="+ ID,
      data: "&lt;?php echo("key=$api_key&amp;fc=$collection_ident&amp;offset="); ?&gt;" + (ID+1) + "&lt;?php echo("&amp;showmax=$showmax&amp;nocontainer" . $jstaggedonly); ?&gt;" + nocache,
      cache: false,
      success: function(html) {
          $("div#updates").append(html);
          $("#more"+ID).remove();
      }
  });
  </code></pre>
  
  <p>Server side code:</p>
  
  <pre><code>if( isSet($_POST['offset']) &amp;&amp; isSet($_POST['showmax']) )
  {
    $offset  = $_POST['offset'];
    $showmax = $_POST['showmax'];
    $new_offset = $offset + $showmax;
  
    $call = $api_url . 'jsfeed.php?' . $_SERVER['QUERY_STRING'];
  
    $html = file_get_contents($call);
    echo($html);
    // ...
  }
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>If you want to <a href="http://feeds.jay-systems.com/web/browser.php?key=208f810275abc96f356920a2a40273ed&amp;fc=updates" rel="nofollow">have a look</a> - the page where I'm testing (online for a limited time)...  Search for a "Show more" button below updates list. This is where the ajax call is triggered.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I solved this. There was an error in my script. There is no need to append a timestamp manually, like I did above. jQuery option <code>cache: false</code> is enough. So, it just looks like this:</p>
  
  <pre><code>// Ajax call: get entries, add to entries div
  $.ajax({
      type: "POST",
      url: "jsfeed.php",
      data: "&lt;?php echo("key=$api_key&amp;fc=$collection_ident&amp;offset="); ?&gt;" + (ID+1) + "&lt;?php echo("&amp;showmax=$showmax&amp;nocontainer" . $jstaggedonly); ?&gt;",
      cache: false,
      success: function(html) {
          $("div#updates").append(html);
          $("#more"+ID).remove();
      }
  });
  </code></pre>