I have this simple ajax call. It works fine in firefox/chrome, returning number of messages sent in a chat enviroment without response. In IE however, the alert is called but only returns 0. If I set cache to false, it returns 1..
What might cause this? Is there any known issues regarding this operation in IE using jQuery?
IE will be taking the result from the cache. Since your request URL has not been changed IE interprets it to be the same request and will not fetch data from server.
You can set the
cacheproperty tofalseduring the ajax request.Read more jQuery.ajax( settings )