给我代码详细信息: [英] Give me the code details:

查看:67
本文介绍了给我代码详细信息:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解释此代码:


 WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.CacheControl," );
  WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.Expires," );  pre> 

解决方案

查找 阅读此简短文章: http://palizine.plynt.com/issues/2008Jul/cache-control-属性/ [ ^ ]


查看链接
RESTful WCF服务–如何在服务器代码中获取浏览器版本 [ ^ ]


Explain This code:


WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.CacheControl, "no-cache, must-revalidate");
  WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.Expires, "-1");

解决方案

Look here[^].


This part of the header tells the browser, that it should not store the page and in case of any redisplay (even with "back") should refetch it from the server.
Read this short article: http://palizine.plynt.com/issues/2008Jul/cache-control-attributes/[^]


look the link
RESTful WCF Service – How to get browser version at server code[^]


这篇关于给我代码详细信息:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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