给我代码详细信息: [英] Give me the code details:
本文介绍了给我代码详细信息:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解释此代码:
WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.CacheControl," );
WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.Expires," ); pre> 解决方案
查找 ^ ].
标头的这一部分告诉浏览器,它不应存储页面,并且在进行任何重新显示(即使带有"back")的情况下,也应从服务器重新获取该页面.
阅读此简短文章: 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屋!
查看全文