$.getJSON returning cached data in IE8

前端 未结 7 1448
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 16:38

I\'m playing around with ASP.net MVC and JQuery at the moment. I\'ve come across behavour which doesn\'t seem to make sense.

I\'m calling JQuery\'s $.getJSON

7条回答
  •  情话喂你
    2020-11-29 17:01

    This is how it worked for me...

    $.ajaxSetup({ cache: false });
    $.getJSON("/MyQueryUrl",function(data,item) {
         // do stuff with callback data
         $.ajaxSetup({ cache: true });
       });
    

提交回复
热议问题