Cache Policy. Set ETag(String) Method
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.
ETag HTTP header to the specified string.
public: void SetETag(System::String ^ etag);
public void SetETag (string etag);
member this.SetETag : string -> unit
Public Sub SetETag (etag As String)
The text to use for the
ETag header has already been set.
The SetETagFromFileDependencies() has already been called.
The following code example demonstrates how to set the
ETag header to a custom value.
ETag header is a unique identifier for a specific version of a document. It is used by clients to validate client-cached content to avoid requesting it again. Once an
ETag header is set, subsequent attempts to set it fail and an exception is thrown.