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

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

public virtual void ExcludeContentTypeFromCache(
	string contentType
)

Parameters

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

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

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

Examples

The following example demonstrates discarding the content of "application/pdf" Content-Types.
// do not store the content of "application/pdf" Content-Types
WebBrowser.ExcludeContentTypeFromCache("application/pdf");
See Also