AxWebBrowser - 缓存网站的问题。 [英] AxWebBrowser - problem with caching website.

查看:60
本文介绍了AxWebBrowser - 缓存网站的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个计时器,每隔5分钟触发一次AxWebBrowser1访问我的网站之一。
我的网站之一。


我后来在网站日志中发现的,是的,它真的只是第一次访问了我的网站




第二次进入网站,每隔一次,重新加载

可能来自缓存,硬盘或某个地方...我只是在猜测。

这是我无法解决的事情而且它因为我而杀了我/>
用这个小东西花费太多时间。


我试图使用刷新和更新,但是这些不会

work。

我甚至试图先去空白页然后再到我的网站......还是

缓存...


如果我重新启动整个应用程序它第一次再次工作它

访问页面...让我发疯了...

这是我的代码:


Private Sub Timer1_Tick(ByVal发送者为对象,

By Val e As System.EventArgs)处理Timer1.Tick


Label1.Text = DateTime.Now

AxWebBrowser1.Navigate(TextBox1.Text)

AxWebBrowser1.Refresh()

AxWebBrowser1.Update()


结束子


每个帮助非常感谢。


Vjay


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全Usenet新闻== - ---
http://www.newsfeed.com #1新闻组服务于世界! > 100,000新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私= ---

I have a timer which triggers AxWebBrowser1 every 5 minutes to visit
one of my websites.

What I find out later in my websites logs, was, that it really visited
my website only for the first time.

Second time it went to the site and every other time, it was reloaded
probably from the cache, hdd or from somewhere... I am just guessing.
This is something I couldn''t resolve and its killing me as I am
spending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn''t
work.
I even tried to go to blank page first and then to my website...still
caching ...

If I restart the whole application it again works for a first time it
visits the page... drives me mad :)
This is my code:

Private Sub Timer1_Tick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

Every help much appreciated.

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

推荐答案

嗨Vjay,


我不确定,我以为我遇到了同样的问题,但你可以试试


axwebbrowser .refresh2(3)


方法,应该这样做,但我有疑问。


告诉我它是否有效,你会吗? ?


Cor
Hi Vjay,

I am not sure, I thought I had the same problems, but you can try the

axwebbrowser.refresh2(3)

method, that should do it, but I am in doubt.

Tell me if it works, will you?

Cor
我后来在我的网站日志中发现的是,它确实访问了我的网站仅用于第一次。

第二次它去了网站,每隔一次,它可能是从缓存,硬盘或某个地方重新加载......我只是在猜测。 />
这是我无法解决的问题因为我花了太多时间处理这个小东西而杀了我。

我试图使用刷新和更新如你所见......但这些不会起作用。
我甚至都没有我先去空白页然后到我的网站......还是要缓存...

如果我重新启动整个应用程序它再次工作第一次它
访问页面......让我发疯:)
What I find out later in my websites logs, was, that it really visited
my website only for the first time.

Second time it went to the site and every other time, it was reloaded
probably from the cache, hdd or from somewhere... I am just guessing.
This is something I couldn''t resolve and its killing me as I am
spending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn''t
work.
I even tried to go to blank page first and then to my website...still
caching ...

If I restart the whole application it again works for a first time it
visits the page... drives me mad :)



我不知道怎么做你想做的事。

我只是想知道微软是否设计了他们的产品

以避免程序员能够轻松地做到这一点因为

它可能会让一个恶意的程序员超载

他想要的任何服务器,只需要一个非常短的计时器和

设置几个客户端来从服务器加载页面每一个几百毫秒。我并不是说你有任何想要这样做的意图,只是因为它很难找到一个技术解决方案来实现它。

。 />
事实上,我对你的问题没有答案,我很想知道是否有可能做到这一点。

最诚挚的问候,Tony
I don''t know how to do what you want to do.
I just wonder if Microsoft have designed their products
to avoid programmers being able to do that easily because
it might allow an ill intentioned programmer to overload
any server he wanted to, just put a very short timer and
set up a few clients to load pages from the server every
few milliseconds. I am not suggesting you have any
intention of wanting to do that, just that it might be
why it is difficult to find a technical solution to do it.
In fact I don''t have an answer to your question, I am
just curious to know if it is possible to do it.
Best Regards, Tony
-----原始消息-----
我有一个计时器,每隔5
分钟触发AxWebBrowser1访问我的网站。

我后来在我的网站日志中发现的是,这是
第一次真正访问了我的网站。

第二次进入网站,每一次另一次,
可能是从缓存,硬盘驱动器或某个地方重新加载的......我只是猜测它是b $ b。

这是我无法解决的问题和它的杀戮因为我花了很多时间来处理这件小事,所以我花了很多时间。

我试图使用刷新和更新,但是你知道这些是不行的。我是ev我试图先去空白页然后再去我的
网站......还是等待...

如果我重新启动整个应用程序,它会再次用于
第一次访问它页面......让我发疯了吧

这是我的代码:

私有子Timer1_Tick(ByVal发送者为对象,
ByVal e As System.EventArgs )处理Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

每一个帮助都非常感激。

Vjay

---- ==通过新闻源发布。 Com - Unlimited-Uncensored-
Secure Usenet News == ---- http:// www .newsfeed.com
世界排名第一的新闻组服务! > 100,000个新闻组--- = 19个东/西海岸专业服务器 - 通过加密总计
隐私= ---。
-----Original Message-----
I have a timer which triggers AxWebBrowser1 every 5 minutes to visitone of my websites.

What I find out later in my websites logs, was, that it really visitedmy website only for the first time.

Second time it went to the site and every other time, it was reloadedprobably from the cache, hdd or from somewhere... I am just guessing.

This is something I couldn''t resolve and its killing me as I amspending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn''twork.
I even tried to go to blank page first and then to my website...stillcaching ...

If I restart the whole application it again works for a first time itvisits the page... drives me mad :)
This is my code:

Private Sub Timer1_Tick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

Every help much appreciated.

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored- Secure Usenet News==----http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---.



Daer Cor,

refresh2也不起作用?


Tony:

你可能是对的,但它不会''让我更新它们即使是间隔5美元/分钟。 Sux非常糟糕。


还有其他想法吗?


感谢您的帮助。


vjay


---- ==通过Newsfeed.Com发布 - 无限制 - 未经审查 - 安全Usenet新闻== ----
http://www.newsfeed.com 世界排名第一的新闻组服务! > 100,000新闻组

--- = 19东/西海岸专业服务器 - 通过加密的总隐私= ---
Daer Cor,
refresh2 doesn''t work either?

Tony:
you might be right, but it wouldn''t let me update them even in 5
minutes intervals. Sux badly.

Any other ideas?

Thanks for trying to help.

vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---


这篇关于AxWebBrowser - 缓存网站的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆