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 ( );
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.
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 ( )
HttpCachePolicy Members Caching ASP.NET Pages