在我的网络应用程序中是否仍然可以让我的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页面的浏览器缓存?
发布评论