OutputCacheProfile.VaryByHeader 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
속성을 가져오거나 설정합니다 VaryByHeader .
public:
property System::String ^ VaryByHeader { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("varyByHeader")]
public string VaryByHeader { get; set; }
[<System.Configuration.ConfigurationProperty("varyByHeader")>]
member this.VaryByHeader : string with get, set
Public Property VaryByHeader As String
속성 값
VaryByHeader 값입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 VaryByHeader .
// Get the current VaryByHeader.
String varyByHeaderValue =
outputCacheProfile.VaryByHeader;
// Set the VaryByHeader.
outputCacheProfile.VaryByHeader =
string.Empty;
' Get the current VaryByHeader.
Dim varyByHeaderValue As String = _
outputCacheProfile.VaryByHeader
' Set the VaryByHeader.
outputCacheProfile.VaryByHeader = _
String.Empty
설명
캐시 VaryByHeader 된 출력을 변경하기 위해 사용되는 세미콜론으로 구분된 헤더 집합입니다. 요청과 연결된 HTTP 헤더입니다. 자세한 내용은 페이지의 여러 버전 캐싱을 참조하세요.
메모
설정은 VaryByHeader@ OutputCache의 VaryByHeader 특성에서 사용하는 것과 동일합니다. "*" 값을 설정하여 모든 헤더에 따라 달라지는 것은 권장되지 않습니다. 이로 인해 웹 서버에서 캐시 오버플로 또는 서비스 거부 공격이 발생할 수 있습니다.