WebBrowser AddResponseToCache Method C# API
Adds an entry to this WebBrowser object's cache.

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

public virtual void AddResponseToCache(
	CachedResponse response
)

Parameters

response
Type: Facilita.Web CachedResponse
A CachedResponse representing a URL and appropriate HTTP request headers.
Remarks

This method can be used to pre-populate a WebBrowser object's cache, prior to sending any requests to the web server.
Examples

The following example demonstrates adding a response to the cache, so a request to retrieve http://myDomain/weather/images/symbols/57x57/3.gif will not be sent to the web server.
CachedResponse cachedResponse = new CachedResponse("http://myDomain/weather/images/symbols/57x57/3.gif");
cachedResponse.SetHeader("Expires", "Fri, 22 Aug 2008 16:23:24 GMT");
cachedResponse.SetHeader("Last-Modified", "Tue, 18 Mar 2008 11:37:40 GMT");
cachedResponse.SetHeader("ETag", "\"b23-905a6900\"");

WebBrowser.AddResponseToCache(cachedResponse);
See Also