[問題] ASP.NET Cache清除?

看板C_Sharp作者 (Tomex Ou)時間17年前 (2008/08/10 22:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我在某頁設定了: <%@ OutputCache Duration="60" VaryByParam="none" %> 現在有一個button是logout, 我想重新update這頁面的東西 請問有啥方式能做到똊 Google了一下,試過以下的方式,都沒用: 1. Response.Expires = 0; Response.Cache.SetNoStore(); Response.AppendHeader("Pragma", "no-cache"); 2. HttpResponse.RemoveOutputCacheItem("page location") -- You're recommended to vist C_Sharp in PTT. We are the C#, resistance is futile. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.166.115.30
文章代碼(AID): #18dm7zMn (C_Sharp)