jQuery Ajax Get calls fail in IE (Internet Explorer) but work in Firefox, Chome, Safari.. why?

You may have come across the situation where you are making a jQuery AJAX GET request to update part of your page with changing content, but it never updates or just returns blank content.

This issue has been around a long time, since first use of Ajax calls via XMLHTTP, but still causes headaches for people trying to debug the problem now.

What it actually comes down to is that the ‘Get’ call is working correctly, but Internet

Explorer (IE) caches the response, so you never get the updated results from the server.

What are the options:

  • 1) Use POST rather than GET – although this is not semantically correct, you should only POST when modifying contents on the server, technically there really is not much difference.
  • 2) (Preferred) You can disable caching globally using $.ajaxSetup(), for example:

    $.ajax
    Setup({ cache: false });
    This appends a timestamp to the querystring when making the request. To turn cache off for a particular $.ajax() call, set cache: false on it locally, like this: $.ajax({
    cache: false,
    //other options...
    });

  • http://www.freerunteam.com/ Air Max 2014

    The Dallas Mavericks are a reported suitor for Carmelo Anthony in the Cheap Nike Free Run free agency, and Dirk
    Nowitzki addressed the speculation. “If Carmelo would really love to come Cheap Nike Air Max, we’d love to have
    him,” Nowitzki said. The Mavericks are projected to have as much as $30 million
    in salary cap space this offseason. Nowitzki added he is confident he would have
    no problem coexisting with Anthony. “Listen, Nike Air Max 1
    think I’ve showed over my 16 years that I can play with anybody,” Nowitzki said.
    “The only tough season I think we’ve had is when we had [Antawn] Jamison and
    Antoine Walker and Air Max 2014
    who are all three kind of the same four-men, but other than that I think I’ve
    shown over my career that I can play with anybody. I’ll adjust, whether Nike Blazers For
    Sale have to get out of the way or go to the corner more, post up, pass.
    I’ll do whatever, really, that needs to be done out there to win or for this
    franchise to be a winner.