title

fire chief's random developer tidbits

Thursday, October 4, 2012

Another reason to dislike Internet Explorer


Internet explorer caches GET requests, but other browsers do not, so you end up having to work around that by adding a current timestamp to the request URL to fool IE into thinking it's a new URL and so not read the result from the cache.

In JQuery that looks like ("global"):

$.ajaxSetup({ cache: false });

or single-call:

$.ajax({url: "myurl", success: myCallback, cache: false});

1 comment:

  1. I think that reaches my quota for run-on sentences today.

    ReplyDelete