title: Prevent iOS 6 from Caching Ajax POST Requests
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results">Is Safari on iOS 6 caching $.ajax results?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a hybrid application using <code>PhoneGap</code> that runs fine on Android and iOS. But when I started testing in iOS 6 I noticed that I am not getting server data for most of my ajax calls - instead I was getting the cached data from previous ajax calls.</p>
  
  <p>So far I have tried the following options to disable cache - </p>
  
  <ol>
  <li>Include a timestamp as query string parameter</li>
  <li><code>$.ajaxSetup({ cache: false });</code></li>
  <li>Inside the ajax call <code>no-cache = true</code></li>
  <li><code>$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
      options.data =
          jQuery.param($.extend(originalOptions.data||{}, { timeStamp: new
          Date().getTime() })); });</code></li>
  </ol>
  
  <p>But none of these seems to be working. I am invoke Java action classes from my ajax calls - will it have something to do with the reason why the methods listed above are failing?</p>