Uncache IE Ajax Cache (XHR GET)

In IE (v: 7.0.5730.11) all GET request are cached. Go figure why.

In order to solve this issue, you can either switch to POST, or add a time stamp to any url you send.

function uncache (url){
return url + “&uncache=” + new Date().getTime();
}

One Response

  1. Thanks! This neat trick saved me from rewriting a script for a webshop I just built! I knew IE sucks, but didn’t have any idea they’ve gone this far to make the programmer’s life a hell :) j/k

    Mike - December 5, 2007 at 7:37 am

Leave a Reply