WebBrowser IncludeContentTypeInCache Method C# API
Adds a Content-Type for which cached content is stored.

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

public virtual void IncludeContentTypeInCache(
	string contentType


Type: System String
The Content-Type to include e.g. "text/xml", "application/pdf".

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.


The following example demonstrates storing the content of "image/png" Content-Types.
// store the content of "image/png" Content-Types
See Also