Home > ajax, jquery > Turn off jQuery .load caching…

Turn off jQuery .load caching…

IE7 has this nasty habbit of caching ajax requests very very agressivly. Which stinks because more often than not ajax content is very dynamic and thus what you don’t want cached!

Fortunatly jQuery provides an easy way to disable all ajax caching with just one statement.

$.ajaxSetup ({
    // Disable caching of AJAX responses
    cache: false

See: http://stackoverflow.com/questions/168963/stop-jquery-load-response-from-being-cached for the original post.

Be Sociable, Share!
Categories: ajax, jquery Tags:
  1. No comments yet.
  1. No trackbacks yet.