I just added a math.random() object to my document.location statement to generate a unique url and prevent the page from being cached.
document.location="http://www.my/project/site/" +Math.random()+"";
The code produces the desired unique url, but I don’t know how to test to verify that the page is not being cached. Is there a javascript method that can detect whether or not a page is a cached page?
Hi there’s no way in javascript that I know of, but firebug and developer tools in chrome will tell you whether each resource has been cached or not