Cacheあれこれ
Cacheを無効にする
[1]アプリケーション構成ファイル(Web.config)
<?xml version="1.0"?> <configuration xmlns="">http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.web> …中略… <caching> <outputCache enableOutputCache="false" /> </caching> …中略… </system.web> </configuration>http://www.atmarkit.co.jp/fdotnet/dotnettips/505aspcommoncache/aspcommoncache.html
http://msdn.microsoft.com/ja-jp/library/ms228124.aspx
[2]aspxファイル
<%@ OutputCache Location="None" VaryByParam="None" %>http://www.ipentec.com/document/document.aspx?page=csharp-aspnet-nocache&culture=ja-jp
[3]aspxファイル
<meta http-equiv="Pragma" content="no-cache">http://freelancer.yoka-yoka.jp/e326691.html
[4]csファイルのPage_Loadイベント内
Me.Response.Cache.SetCacheability(HttpCacheability.NoCache) Me.Response.Cache.SetNoStore()http://d.hatena.ne.jp/manymanytips/20110120/1295500136