views:

121

answers:

2

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!

A: 

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

David Pfeffer
+2  A: 

Call this before your .getJSON call:

$.ajaxSetup({ cache: false });
Nick Craver
thanks for the super fast response brillient!
Steve