.NET禁用页面缓存

1、后台代码

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore(); 

 

2、html代码

<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="Expires" content="0">

你可能感兴趣的:(.net)