如何关闭所有aspx页面的浏览器缓存? [英] How can I urn off browser caching for all aspx pages?

查看:202
本文介绍了如何关闭所有aspx页面的浏览器缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网络应用程序中是否仍然可以让我的IIS服务器发送的所有aspx页面都关闭所有浏览器

缓存?为了让某些事情能够正常工作,我需要将所有缓存都关闭,而且我无法继续依赖用户在浏览器中禁用缓存设置等级。


-

-------------------------- ---------

Ken Varn

高级软件工程师

Diebold Inc.


EmailID = varnk

Domain = Diebold.com

----------------------- ------------

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.com
-----------------------------------

推荐答案

使用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.com
----- ------------------------------
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.com
-----------------------------------



使用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
http://asp.net.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
http://asp.net.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页面的浏览器缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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