CacheControlHeaderValue.NoStore Property

Definition

Whether a cache must not store any part of either the HTTP request message or any response.

public:
 property bool NoStore { bool get(); void set(bool value); };
public bool NoStore { get; set; }
member this.NoStore : bool with get, set
Public Property NoStore As Boolean

Property Value

true if a cache must not store any part of either the HTTP request message or any response; otherwise, false.

Remarks

This property represents the "no-store" directive in a cache-control header field on an HTTP request or HTTP response.

The purpose of the NoStore property is to prevent the inadvertent release or retention of sensitive information. This property applies to the entire message, and may be sent either in an HTTP request or a response.

Applies to