OutputCacheSection.SendCacheControlHeader Egenskap

Definition

Hämtar eller anger ett värde som anger om cache-control:private huvudet skickas av cachemodulen för utdata som standard.

public:
 property bool SendCacheControlHeader { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("sendCacheControlHeader", DefaultValue=true)]
public bool SendCacheControlHeader { get; set; }
[<System.Configuration.ConfigurationProperty("sendCacheControlHeader", DefaultValue=true)>]
member this.SendCacheControlHeader : bool with get, set
Public Property SendCacheControlHeader As Boolean

Egenskapsvärde

trueom sändningen av cache-control:private rubriken är aktiverad, annars . false Standardvärdet är true.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen SendCacheControlHeader .


// Get the current SendCacheControlHeader.
Boolean sendCacheControlHeaderValue = 
    outputCacheSection.SendCacheControlHeader;

// Set the SendCacheControlHeader.
outputCacheSection.SendCacheControlHeader = false;
' Get the current SendCacheControlHeader.
  Dim sendCacheControlHeaderValue As [Boolean] = _
  outputCacheSection.SendCacheControlHeader

' Set the SendCacheControlHeader.
outputCacheSection.SendCacheControlHeader = False

Kommentarer

SendCacheControlHeader Gäller för innehåll utan angiven cachelagring av utdata. När den är inställd falsecache-control:private på skickas inte rubriken som standard.

Note

Med den här inställningen kan innehållet cachelagras på klienten som standard.

Gäller för

Se även