HTTP元刷新问题 [英] http meta refresh issue

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

问题描述

我使用的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.

这篇关于HTTP元刷新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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