I'm a web site developer. Frequently I have to test some web pages in different enverionments: two web page has the same url address, but on different physical machines.
I switch the enverionment by change the hosts file in the C:\WINDOWS\system32\drivers\etc directory. But only when I restart IE can this change take effect. I guess this is because the IE has cached the hosts file's content. So it won't read the file again when I open a new web page.
Now I have two questions:
1. Is there an option in IE that can disable its internal hosts file cache, so that every time it open a new url, it reload the host configuraion from local hosts file?
2. Or is there an API interface which I can use to refresh the cache?
I'm not a native English speaker so I don't know if I have clearly stated my problem.
Any help would be greatly appreciated