16 January 2008

IE caching AJAX requests

I've just discovered the IE caches any AJAX requests made using GET. This means that if you made an AJAX call to the same URL twice, the second request won't get sent, and the response from the first call will be returned instead.

There are two options...

  • Use POST
  • Append a random number to the query string

No comments: