ajax.reload() in Internet Explorer seems to be using cache

ajax.reload() in Internet Explorer seems to be using cache

plareszkaplareszka Posts: 12Questions: 5Answers: 2

Hi,
in my code when I update some values, ajax.reload works fine for almost all browsers and it refreashes the table with new values. But for IE it seems to be using some cache... since data is updated in db, but refreashed table is still showing old value. If i refreash window, new value is present.

 $.ajax({
        url: url,
        data: { val: value, ID: someId },
        type: 'post',
    }).done(function (responseData) {
        $('#table').DataTable().ajax.reload();

I tried disabling the cache, with $.ajaxSetup({ cache: false }); but it didn't help.

Any ideas why its happening this way only on IE ?

This question has an accepted answers - jump to answer

Answers

  • plareszkaplareszka Posts: 12Questions: 5Answers: 2
    Answer ✓

    Please close it...didn't notice i had Cache:true on DataTable first initialization....

This discussion has been closed.