0
我在page_load事件中嘗試了以下方法,但沒有運氣。 (注:本網頁語言VB)爲單個ASP.NET網絡表單禁用Google Chrome的瀏覽器緩存
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1))
Response.Cache.SetNoStore()
Response.Cache.SetMaxAge(New TimeSpan(0, 0, 30))
HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1))
HttpContext.Current.Response.Cache.SetValidUntilExpires(False)
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches)
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache)
HttpContext.Current.Response.Cache.SetNoStore()
燦你把它轉換成可視化的基本代碼? – fangalang