Im doing some javascript code and im using firefox. i have a problem which is getting always the same result when im trying to print out an array. the array is calculated in the code through some algorithms. I realized that sometimes im getting new result when i clear private data in firfox by Tools –> Clear Private Data but i need to do it manually. the annoying thing as well that its not always working (sometimes i need to clear the data and do many refreshs for the page). Does anyone konw how can i clear this private data inside my javascript code so i might get ride of this problem.
BTW: i disabled everythings in the privacy tab but still having the problem…
Thank you very much in advance
Forgive me if I misunderstood your question, but it sounds like you’re trying to clear the browser’s cache using javascript? That’s not possible. However, you can prevent your page from being cached using the following meta tag at the top:
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />You can also do this:
<META HTTP-EQUIV="EXPIRES" CONTENT="Sat, 1 Jan 2000 00:00:01 GMT">(note that the expiration is in the past)
I would do both.