0

I am using getJson method to get data from the URL and load the grid but getJson function returns cached data.

I tried using $.ajaxSetup({ cache: false }); but that did not help.

Mario Boss
  • 1,784
  • 3
  • 20
  • 43
Monika
  • 37
  • 3

1 Answers1

0

Try like this:

$.ajaxSetup({
    headers: { "cache-control": "no-cache" }
});
oscarvady
  • 450
  • 1
  • 4
  • 12