asp.net.ph

HttpCachePolicy.SetNoTransforms Method

System.Web Namespace   HttpCachePolicy Class


Sets the CacheControl: no-transform directive.

[ VB ]
Public Sub SetNoTransforms ( ) 

[ C# ]
public void SetNoTransforms ( );

[ C++ ]
public: void SetNoTransforms ( );

[ JScript ]
public function SetNoTransforms ( );

Remarks

The no-transform CacheControl setting instructs network caching applications to not modify the document.

As with other restrictions on caching, once SetNoTransforms is set, it cannot be disabled through the HttpCachePolicy interface. This directive prevents downstream proxy servers from changing any header values specified by the Content-Encoding, Content-Range, or Content-Type headers ( this includes the entity body ). For example, it prevents proxies from converting GIF images to PNG.

Example

The following example sends the CacheControl: no-transform directive with the current response.

[ VB ]
Response.Cache.SetNoTransforms ( )

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

[ JScript ] 
Response.Cache.SetNoTransforms ( )
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