OutputCachePolicyBuilder.SetVaryByHeader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetVaryByHeader(String, String[]) |
Adds a policy to vary the cached responses by header. |
SetVaryByHeader(String[]) |
Adds a policy to vary the cached responses by header. |
SetVaryByHeader(String, String[])
- Source:
- OutputCachePolicyBuilder.cs
Adds a policy to vary the cached responses by header.
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader (string headerName, params string[] headerNames);
member this.SetVaryByHeader : string * string[] -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByHeader (headerName As String, ParamArray headerNames As String()) As OutputCachePolicyBuilder
Parameters
- headerName
- String
The header name to vary the cached responses by.
- headerNames
- String[]
Additional header names to vary the cached responses by.
Returns
Applies to
SetVaryByHeader(String[])
- Source:
- OutputCachePolicyBuilder.cs
Adds a policy to vary the cached responses by header.
public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHeader (string[] headerNames);
member this.SetVaryByHeader : string[] -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByHeader (headerNames As String()) As OutputCachePolicyBuilder
Parameters
- headerNames
- String[]
The header names to vary the cached responses by.