On our FlipIT service web page, we experienced an interesting problem. There is a “Did you know” (DYK) section that refreshes upon clicking the link. Behind all that is an AJAX created with JQuery $.get method. All normal thus far.

Until IE steps into the picture. I don’t know if the same behaviour is in IE 8 as well, but IE 7 definitely has issues with AJAX requests. If URL of request doesn’t change, IE caches the result and passes it back to you. This wouldn’t be a problem if you would actually expect to see the same result each and every time. However, in our case, where it is desired that DYK section is not always the same, this is kind of annoying.

To sort out our issues, we just added a random number to the request. This number is changed to new random value each and every time the request is processed.