How to disable caching in the .NET WebBrowser Control?

后端 未结 8 1741
我寻月下人不归
我寻月下人不归 2021-01-04 20:01

I have been googling for hours and trying to figure this out, and I just can\'t. I have 1 webbrowser control on a form, webbrowser1.

Once I load a page, say google.

8条回答
  •  抹茶落季
    2021-01-04 20:36

    This page shows how to clear some temp file, read it. I also have this issue, but when .refresh() is not useful to me as it doesnt trigger documentcomplete event. So when I wish to reload, I simply use .navigate() and before navigation I call the

    System.Diagnostics.Process.Start("rundll32.exe","InetCpl.cpl,ClearMyTracksByProcess 8")
    

    in order to clear cache.

提交回复
热议问题