asp.net.ph

HttpCachePolicy.SetETagFromFileDependencies Method

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 ( );

Exceptions


Exception Type Condition
InvalidOperationException Occurs when the ETag header has already been set.

Remarks

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.

Example

The following example sets the ETag header.

[ VB ]
Response.Cache.SetETagFromFileDependencies ( )

[ C# ]
Response.Cache.SetETagFromFileDependencies ( );

[ JScript ] 
Response.Cache.SetETagFromFileDependencies ( )
See Also

HttpCachePolicy Members   Caching ASP.NET Pages Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph