JQuery .load() showing cached result [Solved]
It is always annoying using JQuery load and the element is just showing the first update.Telling a clients to clear cache or refresh the page is even more embarassing. I sought through the internet for a solution after an embarassing presentation with a client yesterday (October 15) when I hide behind browser cache and some technical jargons which I am not too pleased with.
I finally came across the solution that saved the day.
$.ajaxSetup({ cache: false });
This tells the browser that your Ajax functions should not be cached which makes the whole sense. It is best you have it in your JQuery ready function like below.
$(document).ready(function(){
$.ajaxSetup({ cache: false });
});
Hope this save you a great deal. See Ya!