@OutputCache [ASP.NET]
◆@OutputCache ディレクティブ
<%@ OutputCache Duration="#ofseconds"
Location="Any | Client | Downstream | Server | None |
ServerAndClient "
Shared="True | False"
VaryByControl="controlname"
VaryByCustom="browser | customstring"
VaryByHeader="headers"
VaryByParam="parametername"
CacheProfile="cache profile name | ''"
NoStore="true | false"
SqlDependency="database/table name pair | CommandNotification"
%>
ASP.NET Web フォームや、ASP.NET Web フォーム内に含まれるユーザー コントロールの出力キャッシュ ポリシーを制御します。
詳細なリファレンスは、MSDN の公式ヘルプを参照してください。
このディレクティブは、使いどころがあります。
・・・・・・てか、そもそも ASP.NET の根本の挙動がおかしいから、期待通りの挙動をさせるために、こいつでキャッシュを殺さなきゃならない、なんていうケースもあるわけで。
能動的に使えるケースと、こいつを使う必要に迫られるケースと、まあいろいろと事情があるんですが。