开发者

IE8 getJSON cached data

开发者 https://www.devze.com 2022-12-20 23:18 出处:网络
Simply one really. IE8 is caching my data so it works first time but not afterwards. I need tostop it using cached dat开发者_Python百科a when i call getJSON?

Simply one really. IE8 is caching my data so it works first time but not afterwards. I need to stop it using cached dat开发者_Python百科a when i call getJSON?

P.S Im currently debuging my site in IE so expect lots of posts from me :) Thanks for all that have helped so far truely are a great help!


Call this before your .getJSON call:

$.ajaxSetup({ cache: false });


You can send an HTTP header to disable caching from your server-side script.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号