ASP.NET 清除 Cache 語法
Response.Cache.Setcacheability(HttpCacheability.NoCache);
Response.Cache.SetAllowResponseInBrowserHistory(false);

HttpCacheability 種類說明如下:
NoCache:使用伺服器或 Proxy 伺服器的 Cache
Private:只使用客戶端 Cache ,不包含 Proxy ,此為預設值。
Public:可以使用客戶端或 Proxy 伺服器的 Cache
Server:只使用伺服器的 Cache

arrow
arrow
    文章標籤
    ASP.NET C# Cache
    全站熱搜

    mark528 發表在 痞客邦 留言(0) 人氣()