如何关闭所有aspx页面的浏览器缓存?

编程入门 行业动态 更新时间:2024-10-24 01:56:02
本文介绍了如何关闭所有aspx页面的浏览器缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在我的网络应用程序中是否仍然可以让我的IIS服务器发送的所有aspx页面都关闭所有浏览器 缓存?为了让某些事情能够正常工作,我需要将所有缓存都关闭,而且我无法继续依赖用户在浏览器中禁用缓存设置等级。 - -------------------------- --------- Ken Varn 高级软件工程师 Diebold Inc. EmailID = varnk Domain = Diebold ----------------------- ------------

Is there anyway within my web application that I can have all browser caching turned off for all aspx pages sent by my IIS server? I need to have all caching off in order for certain things to work properly, and I can''t always rely on the user disabling their cache settings at the browser level. -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. EmailID = varnk Domain = Diebold -----------------------------------

推荐答案

使用pragma no-cache - 谢谢, Yunus Emre ALP?ZEN BSc,MCAD.NET " Ken Varn" < NOSPAM>在消息中写道 新闻:uv ************** @ TK2MSFTNGP10.phx.gbl ... Use pragma no-cache -- Thanks, Yunus Emre ALP?ZEN BSc, MCAD.NET "Ken Varn" <nospam> wrote in message news:uv**************@TK2MSFTNGP10.phx.gbl... 我的内心是否仍然存在对于我的IIS服务器发送的所有aspx页面,我可以关闭所有浏览器的Web应用程序吗?为了让某些事情能够正常工作,我需要全部缓存,而且我不能总是依赖于用户在浏览器中禁用缓存设置等级。 - ---------------------------------- - Ken Varn 高级软件工程师 Diebold Inc. EmailID = varnk Domain = Diebold ----- ------------------------------ Is there anyway within my web application that I can have all browser caching turned off for all aspx pages sent by my IIS server? I need to have all caching off in order for certain things to work properly, and I can''t always rely on the user disabling their cache settings at the browser level. -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc. EmailID = varnk Domain = Diebold -----------------------------------

使用pragma no-cache Use pragma no-cache

只是为了澄清: < META HTTP-EQUIV =pragma。内容=nocache> .....在您的HTML / ASPX文件中。 Jeppe Jespersen 丹麦

Just to clarify: <META HTTP-EQUIV="pragma" Content="nocache"> .....in your HTML/ASPX file. Jeppe Jespersen Denmark

不幸的是,使用: < META HTTP-EQUIV =" pragma" Content =" nocache"> 在某些浏览器中效果不佳。 正确使用的对象是: SetCacheability(HttpCacheability.NoCache) Juan T. Llibre ASP.NET MVP asp.do/foros/ Foros de ASP.NET en Espa?ol Ven,y hablemos de ASP.NET ... =========== =========== " Jeppe Jespersen" < JDJ * JDJ-DK>在消息中写道 新闻:OE ************** @ TK2MSFTNGP09.phx.gbl ... Unfortunately, using : <META HTTP-EQUIV="pragma" Content="nocache"> doesn''t work too good in some browsers. The correct object to use is : SetCacheability(HttpCacheability.NoCache) Juan T. Llibre ASP.NET MVP asp.do/foros/ Foros de ASP.NET en Espa?ol Ven, y hablemos de ASP.NET... ====================== "Jeppe Jespersen" <jdj*jdj-dk> wrote in message news:OE**************@TK2MSFTNGP09.phx.gbl... 使用pragma no-cache Use pragma no-cache

只是为了澄清: < META HTTP-EQUIV =" pragma" HTML / ASPX文件中的内容=nocache> .... Jeppe Jespersen 丹麦

Just to clarify: <META HTTP-EQUIV="pragma" Content="nocache"> ....in your HTML/ASPX file. Jeppe Jespersen Denmark

更多推荐

如何关闭所有aspx页面的浏览器缓存?

本文发布于:2023-11-11 18:32:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579240.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缓存   浏览器   页面   aspx

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!