IISでhttpバインディングを使用してwcfサービスをホストしています。
最近、ある種のキャッシングが行われていることに気づきました。
実際のデータを取得するまでWebサービスを更新する必要がありますが、それは数分前ではありません。
この種のキャッシュを無効にする方法はありますか?とその方法...
[AspNetCacheProfile("NoCacheProfile")]
アプリケーション(<system.web>
要素の子)のweb.configで次のように定義されているサービスメソッドに属性を追加できます。
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="NoCacheProfile" noStore="true" duration="0" varyByParam="none" enabled="true"/>
</outputCacheProfiles>
</outputCacheSettings>
</caching>
これは.NETFramework4の機能です。