System.Web Namespace HttpCachePolicy Class
Sets the ETag HTTP header based on the time stamps of the handler's file dependencies.
[ VB ]
Public Sub SetETagFromFileDependencies ( )
[ C# ]
public void SetETagFromFileDependencies ( );
[ C++ ]
public: void SetETagFromFileDependencies ( );
[ JScript ]
public function SetETagFromFileDependencies ( );
SetEtagFromFileDependencies sets the ETag header by retrieving the last modified time stamps of all files on which the handler is dependent, combining all file names and time stamps into a single string, then hashing that string into a single digest that is used as the ETag.
The following example sets the ETag header.
[ VB ]
Response.Cache.SetETagFromFileDependencies ( )
[ C# ]
Response.Cache.SetETagFromFileDependencies ( );
[ JScript ]
Response.Cache.SetETagFromFileDependencies ( )
HttpCachePolicy Members Caching ASP.NET Pages