Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

navigate to a web page without it loading from cache

Status
Not open for further replies.

Mingas

Programmer
Jul 10, 2013
15
ZA
Please help

I need to know how i could nevigate to a page without it being read from cahe...currently i achieve this by first navigating to a page then once loaded, i do a refresh2 ....is it possible to attain the same result without having to do a refresh. See what i do below:


objIE.Navigate "Do While objIE.ReadyState <> 4
WScript.Sleep 2000
Loop
objIE.Refresh2(3)
 
Put this at the top of your code and it will configure IE to always load the page fresh.

Code:
Set WSHShell = Wscript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\Currentversion\Internet Settings\SyncMode5", 3 ,"REG_DWORD"

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at
Work SMARTER not HARDER.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top