jquery - Ajax call fails for no reason in Chrome -
i have simple ajax call, running in 1 second interval, updates page match status:
var getmatches = function() { $.ajax({ url: '/match', type: 'get', success: function(data) { avm.matches(data); }, error: function(jqxhr, textstatus, errorthrown) { console.log('error occured: ' + errorthrown); } }); }; this worked beginning of project, lately started misbehaving - on chrome only.
the call won't fire - have log::debug on server side, , call doesn't reach it. network panel in developer tools not show call. textstatus 'error', errorthrown empty, , jqxhr.status 0. while happening, if run http://localhost/match, or open same page in firefox - correct results. not server or routing issue - it's purely in client.
this behavior started yesterday, , i'm observing on production server well. , sporadic - if close chrome, clean cache, etc., it'll work again - while. there in cache that's blocking call?
any ideas how troubleshoot this?
sounds browser using cached response. try adding option:
cache: false to $.ajax() call.
Comments
Post a Comment