我在某頁設定了:
<%@ 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