HttpCachePolicy.SetNoTransforms Method
Sets the CacheControl: no-transform directive.
[Visual Basic] 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.
[Visual Basic] Response.Cache.SetNoTransforms() [C#] Response.Cache.SetNoTransforms(); [C++] Response->Cache->SetNoTransforms(); [JScript] Response.Cache.SetNoTransforms()
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace