私のサービスでは、次のメソッドを追加しました。
protected override void OnStartProcessingRequest(ProcessRequestArgs args)
{
base.OnStartProcessingRequest(args);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
HttpContext.Current.Response.Cache.SetMaxAge(new TimeSpan(1, 0, 0));
}
私のクライアントは、通常生成された .net クライアントです。何もキャッシュされていないようです。リクエストごとにサーバーに送信されます。キャッシュを有効にするには何をする必要がありますか? ありがとう、じゃぁ