作者tomex (Tomex Ou)
看板C_Sharp
标题[问题] ASP.NET Cache清除?
时间Sun Aug 10 22:58:03 2008
我在某页设定了:
<%@ 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