How To Clear The Cache For Json
I'm reading a JSON file with jQuery. If I update the file that .get() reads it still gets the old values when I read the newer file. Since I write and read the file every second, h
Solution 1:
use $.ajaxSetup
settings
$.ajaxSetup({
cache:false
});
after that you can use your code like
functionreadEye() {
$.getJSON('output.json', function(data){
console.log(data);
});
}
Post a Comment for "How To Clear The Cache For Json"