This question has already been answered in the comments, but there is no corresponding answer in the answers. I am trying to answer it here so that it is useful for all other users who have encountered one problem.
The solution may be:
Serial ajax calls without changing the request are often considered cached by some browsers, and this problem is especially reproducible in IE 10 . The response to the HTTP 304 Not Modified request is and the request does not end up in the database. The solution is to use ajaxSetup to set cache to false as:
$(document).ready(function() { $.ajaxSetup({ cache: false }); });
NOTE. This will set the cache to false for all ajax calls in the session.
OR
Using cache: false , in particular ajax calls, if you do not want to disable the cache for all ajax calls.
$.ajax({ ... cache: false, ... });
source share