什么是Response.Cache.SetCacheability(HttpCacheability.NoCache)的确切用法和示例 [英] What is exact use of Response.Cache.SetCacheability(HttpCacheability.NoCache) with example

查看:320
本文介绍了什么是Response.Cache.SetCacheability(HttpCacheability.NoCache)的确切用法和示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨先生,

告诉我带有示例的Response.Cache.SetCacheability(HttpCacheability.NoCache)的确切用法。我是dotnet领域的新手,我在谷歌搜索但是

无法清楚地理解。请给我解决这个问题的方法。

Hi sir,
Tell me the exact use of Response.Cache.SetCacheability(HttpCacheability.NoCache) with examples. I am new to dotnet field, i search in google but
cant able to understand clearly. Kindly give me the solution for this problem.

推荐答案





代码中的HttpCacheability.NoCache告诉你的浏览器不要缓存页面。



基本上告诉页面无法使用缓存。

所以它可以像点击浏览器后退按钮一样实现,它不应该缓存当前页面的任何内容。

因此在这些类型的场景中,我们实现它。
Hi,

HttpCacheability.NoCache in your code tells your browser that don''t cache the page.

Basically tells that the cache will not be available for the page.
So it can be implemented like when clicking the browser back button, it should not cache anything of the current page.
So in these type of scenarios, we implement it.


这篇关于什么是Response.Cache.SetCacheability(HttpCacheability.NoCache)的确切用法和示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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