HTTP元刷新问题问题、HTTP

2023-09-04 05:21:13 作者:从校服走到婚纱"

我使用的HTTP元刷新到reflesh当前页面,以保持会议现场。我使用VSTS 2008 + C#+的.Net 3.5和开发ASP.Net应用程序。

I am using http meta refresh to reflesh current page to keep session live. I am using VSTS 2008 + C# + .Net 3.5 and developing ASP.Net application.

我的问题是,是否有可能从客户端(浏览器)侧发送If-未修改-Since请求头服务器端,并检查是否在服务器端的响应304未修改头客户端? (我想用这个来optmize带宽和开销服务器。)

My question is, is it possible to send from client (browser) side If-Not-Modified-Since request header to server side and check if at server side responses 304 Not-Modified header to client? (I want to use this to optmize bandwidth and overhead at server.)

如果是的,任何人都可以推荐我一些样品code在客户端和服务器端如何实现这一点?

If yes, could anyone recommend me some sample code at client side and at server side how to implement this?

在此先感谢, 乔治

推荐答案

这可能解决与添加在.NET 2.0中的 HtmlMeta 类。它允许编程访问元的关键字。你可以检查出来这里。

This could potentially be addressed with the HtmlMeta class that was added in .NET 2.0. It allows programmatic access to the meta keywords. You can check it out here.