WebBrowser CacheContentTypeDirectory Method (String, Boolean)C# API
Adds or removes a Content-Type media type for which cached content is stored.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.4.0.26 (1.0.0.0)
Syntax

public virtual void CacheContentTypeDirectory(
	string contentTypeDirectory,
	bool cache
)

Parameters

contentTypeDirectory
Type: System String
The Content-Type media type to add or remove e.g. "text", "application".
cache
Type: System Boolean
true if content with the specified media type should be stored; otherwise, false.
Remarks

Note Note
There is a performance overhead incurred by storing resources in the cache.

By default, eggPlant Performance will only store the content of resources with certain Content-Type media types:

  • application
  • message
  • model
  • multipart
  • text

So, for example, all content with Content-Type "text/html", or "application/pdf" will be stored, but content with Content-Type "image/png" will be discarded. In most cases, there is no reason to access the contents of image data, but this method can be used to store specific types.

Note Note
Images are still cached, in that they will not be requested again from the web server once they have been downloaded; it is just the image data that is discarded.

See Also