网页缓存 [英] web pages cacheing

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

问题描述



我需要从网络服务器上下载一些网页(大多数是

而不是静态html,但.asp页面)。

页面中的内容(即纯html)不会经常更改

,所以我会寻找一种不下载那些页面的方法,其中包含

自上次下载后未被更改。

有人能指出我在这方面的起点吗?任何例子,




谢谢

Sunny

Hi,
I need to download some web pages from a web server (most of them are
not static html, but .asp pages).
The content (I.e. the pure html) in the pages are not changed very
often, so I''ll looking for a way not to download that pages, which have
not been changed since last download.
Can someone point me an starting point in that direction? Any examples,
etc.

Thanks
Sunny

推荐答案



嗨阳光,


感谢你在这个小组中发帖。

你能告诉我哪个方向你用来从网络服务器下载网页吗?

使用ftp?或者只是设置这些页面的链接供客户下载?

如果有可能,我认为源代码控制是版本控制的好方法。


谢谢


祝你好运,

Jeffrey Tan

微软在线合作伙伴支持

安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有赋予任何权利。


--------------------

|来自:Sunny< su ****** @ icebergwireless.com>

|主题:网页缓存

|日期:2003年11月6日星期四14:15:38 -0600

|组织:Iceberg Wireless LLC

| MIME版本:1.0

|内容类型:text / plain; charset =" iso-8859-15"

|内容传输编码:7位

| X-Newsreader:MicroPlanet Gravity v2.60

|消息ID:< OB ************** @ TK2MSFTNGP12.phx.gbl>

|新闻组:microsoft.public.dotnet.languages.csharp

| NNTP-Posting-Host:216.17.90.91

|行数:1

|路径:cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl

|外翻:cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197291

| X-Tomcat-NG:microsoft.public.dotnet.languages.csharp

|

|

|我需要从网络服务器下载一些网页(大多数是

|不是静态html,但.asp页面)。

|页面中的内容(即纯html)不会改变很多

|经常,所以我会寻找一种不下载那些页面的方法,这些页面有

|自上次下载后未被更改。

|有人能指出我在这方面的起点吗?任何例子,

|等等

|

|谢谢

| Sunny

|


Hi Sunny,

Thanks for posting in this group.
Can you tell me which way you use to download web pages from web server?
Use ftp? Or just setup links for these pages for client to download?
If it is possible, I think source control is a good way for version control.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Sunny <su******@icebergwireless.com>
| Subject: web pages cacheing
| Date: Thu, 6 Nov 2003 14:15:38 -0600
| Organization: Iceberg Wireless LLC
| MIME-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-15"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: MicroPlanet Gravity v2.60
| Message-ID: <OB**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 216.17.90.91
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197291
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi,
| I need to download some web pages from a web server (most of them are
| not static html, but .asp pages).
| The content (I.e. the pure html) in the pages are not changed very
| often, so I''ll looking for a way not to download that pages, which have
| not been changed since last download.
| Can someone point me an starting point in that direction? Any examples,
| etc.
|
| Thanks
| Sunny
|


你好Jeffrey,


文章< Uo * *************@cpmsftngxa06.phx.gbl> ;, v-
je *** @ online.microsoft.com 说...
Hi Jeffrey,

In article <Uo**************@cpmsftngxa06.phx.gbl>, v-
je***@online.microsoft.com says...

嗨Sunny,

感谢你在这个小组中发帖。
你能来吗?告诉我你用哪种方式从网络服务器下载网页?
使用ftp?或者只是设置这些页面的链接供客户端下载?
如果有可能,我认为源代码控制是版本控制的好方法。

谢谢

此致,
Jeffrey Tan
Microsoft在线合作伙伴支持
获得安全! - www.microsoft.com/security
此帖子提供就像没有保证并且没有授予任何权利。

Hi Sunny,

Thanks for posting in this group.
Can you tell me which way you use to download web pages from web server?
Use ftp? Or just setup links for these pages for client to download?
If it is possible, I think source control is a good way for version control.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



我正在为断开连接的设备(笔记本电脑,PDA,

等)实施客户端。

此客户端(连接时)必须下载一些页面以供离线

查看。客户端连接到服务器,其中包括必要的页面,拉链并将它们发送到客户端。所以,我正在寻找

的方式,如何只获得更改的页面。

客户端可以向服务器发送有关现有页面的一些信息,因此服务器

将知道如何比较页面是否已被更改并获取它。

我缺少的是客户端必须发送的确切信息,以及服务器如何
将在完全下载页面之前检查页面是否已更改并处理

它们。

我当前的实现使得页面的MD5校验和,之后

服务器下载所有页面,然后发送给客户端仅更改

一个。但是我想避免不合理的下载。

我对代理缓存的工作方式一无所知,所以我需要

一些信息来实现类似的东西。


谢谢

Sunny


I''m implementing a client for disconnected devices (notebooks, PDAs,
etc.).
This client (when connected) have to download some pages for off-line
viewing. The client connects to a server, which among other things, gets
the necessary pages, zips them and sends them to client. So, I''m looking
for a way, how to get only changed pages.
Client can send the server some info about existing pages, so server
will know how to compare if a page have been changed and to fetch it.
What I''m missing is what exact info client have to send, and how server
will check if pages are changed before fully download them and process
them.
My current implementation makes MD5 checksum of the pages, after that
server downloads all pages, and then sends to the client only changed
one. But I want to avoid unreasonable downloading at all.
I do not have any knowledge on how proxy caches are working, so I need
some info to implement something similar.

Thanks
Sunny




Hi Sunny,

感谢您的反馈。

根据我的理解,您的问题是在服务器获得所有

页面之后,您如何确定应该将哪些页面发送给客户端。(已修改)

我认为在您的客户端,您可以使用File.GetLastWriteTimeUtc()

方法获取上次修改时间,然后你可以将这些信息发送给服务器。

服务器端,可以比较页面的最后修改时间属性

确定哪些页面要压缩并发送给客户。


如果我误解你,请随时告诉我。


祝你好运,

Jeffrey Tan

Microsoft Online Pa rtner支持

安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有赋予任何权利。


--------------------

|来自:Sunny< su ****** @ icebergwireless.com>

|主题:RE:网页缓存

|日期:2003年11月7日星期五08:29:49 -0600

|参考文献:< OB ************** @ TK2MSFTNGP12.phx.gbl>

< Uo ************* *@cpmsftngxa06.phx.gbl>

|组织:Iceberg Wireless LLC

| MIME版本:1.0

|内容类型:text / plain; charset =" iso-8859-15"

|内容传输编码:7位

| X-Newsreader:MicroPlanet Gravity v2.60

|消息ID:<或************* @ TK2MSFTNGP12.phx.gbl>

|新闻组:microsoft.public.dotnet.languages.csharp

| NNTP-Posting-Host:216.17.90.91

|行数:1

|路径:cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl

|外翻:cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197443

| X-Tomcat-NG:microsoft.public.dotnet.languages.csharp

|

|杰弗里,

|

|在文章< Uo ************** @ cpmsftngxa06.phx.gbl> ;, v-

| je***@online.microsoft.com 说...

| >

| >Sunny,

| >

| >感谢您在此群组中发帖。

| >你能告诉我你用哪种方式从网络服务器下载网页吗?

| >用ftp?或者只是设置这些页面的链接供客户下载?

| >如果有可能,我认为源代码控制是版本

控制的好方法。

| >

| >谢谢

| >

| >最好的问候,

| >杰弗里·谭

| > Microsoft在线合作伙伴支持

| >安全! - www.microsoft.com/security

| >该帖子是按原样提供的。没有保证,也没有赋予

权利。

|

|

|我正在为断开连接的设备(笔记本电脑,掌上电脑,

|等)实施客户端。

|这个客户端(连接时)必须下载一些离线页面

|观看。客户端连接到服务器,其中包括

|必要的页面,拉链并将它们发送给客户。所以,我在寻找

|对于某种方式,如何只获得改变的页面。

|客户端可以向服务器发送有关现有页面的一些信息,因此服务器

|将知道如何比较页面是否已被更改并获取它。

|我缺少的是客户必须发送的确切信息,以及服务器如何
|将在完全下载并处理之前检查页面是否已更改

|他们。

|我当前的实现使得页面的MD5校验和,之后

|服务器下载所有页面,然后发送给客户端只更改

|一。但我想避免无理下载。

|我对代理缓存的工作方式一无所知,所以我需要

|一些信息来实现类似的东西。

|

|谢谢

| Sunny

|


Hi Sunny,

Thanks for your feedback.
Based on my understanding, your problem is after the server got all the
pages, how can you determine which pages should be sent to client.(modified)
I think in your client side, you can use the File.GetLastWriteTimeUtc()
method to get the last modified time, then you can send these information
to the server.
The server side, can compare the last modified time property of pages to
determine which pages to zip and send to client.

If I misunderstand you, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Sunny <su******@icebergwireless.com>
| Subject: RE: web pages cacheing
| Date: Fri, 7 Nov 2003 08:29:49 -0600
| References: <OB**************@TK2MSFTNGP12.phx.gbl>
<Uo**************@cpmsftngxa06.phx.gbl>
| Organization: Iceberg Wireless LLC
| MIME-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-15"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: MicroPlanet Gravity v2.60
| Message-ID: <Or*************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 216.17.90.91
| Lines: 1
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197443
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi Jeffrey,
|
| In article <Uo**************@cpmsftngxa06.phx.gbl>, v-
| je***@online.microsoft.com says...
| >
| > Hi Sunny,
| >
| > Thanks for posting in this group.
| > Can you tell me which way you use to download web pages from web server?
| > Use ftp? Or just setup links for these pages for client to download?
| > If it is possible, I think source control is a good way for version
control.
| >
| > Thanks
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
|
|
| I''m implementing a client for disconnected devices (notebooks, PDAs,
| etc.).
| This client (when connected) have to download some pages for off-line
| viewing. The client connects to a server, which among other things, gets
| the necessary pages, zips them and sends them to client. So, I''m looking
| for a way, how to get only changed pages.
| Client can send the server some info about existing pages, so server
| will know how to compare if a page have been changed and to fetch it.
| What I''m missing is what exact info client have to send, and how server
| will check if pages are changed before fully download them and process
| them.
| My current implementation makes MD5 checksum of the pages, after that
| server downloads all pages, and then sends to the client only changed
| one. But I want to avoid unreasonable downloading at all.
| I do not have any knowledge on how proxy caches are working, so I need
| some info to implement something similar.
|
| Thanks
| Sunny
|


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

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