以编程方式清除 IE 缓存与 InetCpl.cpl,ClearMyTracksByProcess
我有一个托管网络浏览器控件的应用程序,它使用我的微软提供的代码示例(定期)清除缓存: http://support.microsoft.com/kb/262110
但是我注意到,一段时间后缓存损坏或无法正常工作(应该不在缓存中的请求 - 被一遍又一遍地调用。
当我运行以下命令时,应用程序开始正常运行。 system('RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8')
两者是否相同,或者代码是否缺少某些内容?
I have an application hosting the webbrowser control which clears the cache (regularly) using the code example provided my microsoft:
http://support.microsoft.com/kb/262110
I am noticing however that after sometime the cache get corrupted or not working properly (requests that should be out of cache - are called over and over again.
When I run the following command, the application starts running normally.
system('RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8')
Are the two the same, or is the code lacking something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 IE9 中,我运行了 InetCpl.cpl,ClearMyTracksByProcess 8,它没有删除任何东西,所以看起来 MS 再次移动了球门柱。
下面显示的是我挑选的一些非常好的代码,应该可以在 IE7 中运行,但如果您想要在 win7 和 IE8/9 上运行的代码,请单击我的名字
In IE9 I ran InetCpl.cpl,ClearMyTracksByProcess 8 and it did not remove a thing so looks like MS has moved the goal posts again.
Shown below is some very nice code I picked up that should work in IE7 but if you want code that does the trick on win7 and IE8/9 then click my name