HttpRuntimeSection.EnableKernelOutputCache 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
출력 캐싱을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.
public:
property bool EnableKernelOutputCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableKernelOutputCache", DefaultValue=true)]
public bool EnableKernelOutputCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableKernelOutputCache", DefaultValue=true)>]
member this.EnableKernelOutputCache : bool with get, set
Public Property EnableKernelOutputCache As Boolean
속성 값
true출력 캐싱을 사용하도록 설정하면 이고, 그렇지 않으면 . false 기본값은 true입니다.
- 특성
예제
다음 예제에서는 속성을 사용 하는 방법을 보여 있습니다 EnableKernelOutputCache .
// Get the current EnableKernelOutputCache property value.
Response.Write("EnableKernelOutputCache: " +
configSection.EnableKernelOutputCache + "<br>");
// Set the EnableKernelOutputCache property to true.
configSection.EnableKernelOutputCache = true;
' Get the current EnableKernelOutputCache property value.
Response.Write("EnableKernelOutputCache: " & _
configSection.EnableKernelOutputCache & "<br>")
' Set the EnableKernelOutputCache property to true.
configSection.EnableKernelOutputCache = True
설명
응답을 캐시하려면 다음 조건을 충족해야 합니다.
페이지 지시문 또는 캐싱 API에서 캐싱을 명시적으로 사용하도록 설정해야 합니다.
캐싱에는 커널에서 삭제 시기를 알 수 있도록 만료 정책이 있어야 합니다.
캐싱에는 변수 헤더 또는 매개 변수가 있을 수 없습니다.
요청에 인증이 필요하지 않아야 합니다.
메모
이 속성은 IIS(인터넷 정보 서비스) 버전 6.0 이상이 설치된 경우에만 관련이 있습니다.