Internet explorer seems to feel the need to cache everything, which can turn a simple ajax request into an IE nightmare.
Add this to the top of your php script, and all your IE Ajax caching problems will be solved!
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
great solution. will add this to the top of my php script.
dude, you’re great!
Beautiful post! I have been straining my hair for about 2 hours and your tip solved everything
Jonas, pleased to hear I solved your problem!
Designer and web developer, Co-founder and Technical Director at Harkable.com London. Previously I worked at InMobi, Spotify and MySpace. Interests include photography and making short videos. Also an avid F1 fan.
Follow us on Twitter and get in-stream updates.
Subscribe to all the Papermashup tutorials and articles straight to your RSS reader.
Sign up and get all the Papermashup tutorials straight to your inbox.
4 discussions around IE Ajax Caching Issue