Jeremy Gillick wrote:

I'm trying to reload the current page from my custom XUL toolbar, however,
everytime it does, the page loads from cache.  I have to manually Shift +
Reload to load the page fresh.  Is there a way to do this in XPCOM?  My
current code is below:

oTab = gBrowser.mCurrentBrowser;
oTab.webNavigation.reload(nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY |
nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE);

Thanks,
Jeremy




that looks like it should be correct. can you try stepping through the debugger... maybe set breakpoints on nsDocShell::Reload and on nsDocShell::DoChannelLoad. if you don't hit DoChannelLoad, then that could explain the problem. in which case it might be trying to load from session history for some strange reason. however, if you are hitting DoChannelLoad, then it'd be good to verify that nsIRequest::LOAD_BYPASS_CACHE is being set as the load flags on the channel.


-Darin
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to