You have a few alternatives:
- With your code.
With JavaScript 1.2, the refresh code should be:
window.location.reload( true );
This SHOULD cause a complete reload of the page; however, I’ve seen instances where it still loaded a page from the cache.
- Disabling the cache.
In FireFox 2.0, navigate to about:config
Locate browser.cache.disk.enable and double-click it, so it’s value reads false.
Close that window.
Now manually clear your cache, as layed out in #3.
I am unsure if you need to restart FireFox, so you might want to do that just in case.
For Internet Explorer
Open the Tools menu, then click Internet Options…
In the General tab, under the section Temporary Internet Files, click the Settings… button.
The Settings dialog opens.
Under Check for newer versions of stored pages:, click the option Every visit to the page
Click OK; then click OK to close Internet Options.
- Manually clearing cache.
In FireFox 2.0, click on the Tools menu, then Options.
In the Privacy tab, there is a section labeled Private Data.
Click the Settings… button.
Deselect data you do not want cleared. I usually set mine to have Cache and Authenticated Sessions checked, and the rest unchecked.
Click OK.
At this point, you’ll be back in the Privacy tab. To save time, uncheck Ask me before clearing private data then click Clear Now…
Click OK, then Click OK to exit the Options dialog.
>> From this point forward, when you want to clear your FireFox cache (and anything else you selected for clearing private data), you can simply go to the Tools menu, then click Clear Private Data (or use the keyboard shortcut of <ctrl><shift><del>).
For Internet Explorer
Open the Tools menu, then click Internet Options…
In the General tab, under the section Temporary Internet Files, click the Delete Files… button.
You do not need to checkmark the “Delete all offline content”; just click OK.
Click OK to close the Internet Options dialog.
Repeat this process to clear your cache anytime.