頁面內容不要cache 確保每次都抓最新資料

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);  // HTTP 1.1.
Response.Cache.AppendCacheExtension("no-store, must-revalidate");
Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.0.
Response.AppendHeader("Expires", "0"); // Proxies.

※未經驗證

留言

熱門文章