Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE8 getJSON cached data

Simply one really. IE8 is caching my data so it works first time but not afterwards. I need to stop it using cached data 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!

like image 584
Steve Avatar asked Feb 04 '23 06:02

Steve


1 Answers

Call this before your .getJSON call:

$.ajaxSetup({ cache: false });
like image 53
Nick Craver Avatar answered Feb 05 '23 19:02

Nick Craver