ASP中如何控制客户端缓存?

请问如何在ASP中,禁止客户端缓存的语句是什么?或者用客户端javascript来控制也可以,我急,请各位大虾提示!
---------------------------------------------------------------

在HTML文件中用

1<head>
2<meta content="no-cache" http-equiv="pragma"/>
3</head>

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

ASP中

1   
2Response.AddHeader ("pragma","no-cache");   
3Response.CacheControl = "no-cache";   

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

response.buffer=true
response.flush
---------------------------------------------------------------

HTML

1<head>
2<meta content="no-cache" http-equiv="pragma"/>
3</head>

ASP

1   
2Response.AddHeader ("pragma","no-cache");   
3Response.CacheControl = "no-cache";   
Published At
Categories with Web编程
comments powered by Disqus