The Forefront TMG Web proxy can be configured to maintain a cache of Web objects and to attempt to fulfill Web requests from the cache. If a request cannot be fulfilled from the cache, the Forefront TMG computer processing the request initiates a new request on behalf of the client. Once the remote Web server responds to the Forefront TMG computer, the Forefront TMG computer caches the response to the original client request and sends a response to the client.
By default, when you install Forefront TMG, caching is disabled. This is because no space on any disk drive on a Forefront TMG computer is allocated for caching. When you allocate cache space on at least one cache drive on a Forefront TMG computer (FPCServer object) by setting the CacheLimitInMegs property of the applicable FPCCacheDrive object to a value greater than zero, you effectively enable caching.
With caching enabled, you can further configure the cache by defining cache rules (FPCCacheRule objects), which determine whether content from specified sites should be stored or retrieved from the Forefront TMG cache. A cache rule applies to destination sites and does not consider the source network. The destination sites are specified by network entities, domain name sets (FPCDomainNameSet collections), and URL sets (FPCURLSet collections).
Forefront TMG supports forward caching, used for outgoing requests, and reverse caching, used for incoming requests. Clients in both forward caching and reverse caching benefit from the full gamut of Forefront TMG caching features.
For any specific network, if Firewall Client support is enabled, or if Forefront TMG is configured as the default gateway for SecureNAT clients, the Forefront TMG Web proxy caches objects requested by Firewall and SecureNAT clients.
Forefront TMG analyzes the cache configuration (FPCCacheConfiguration object) and existing cache content to determine if an object should be retrieved from the cache.
First, if the user request is allowed, Forefront TMG checks whether the object exists in its cache. If the request is made to a Forefront TMG array with multiple computers (not supported in the Forefront TMG Medium Business Edition), the Cache Array Routing Protocol (CARP) algorithm is used to determine which server's cache should be checked. If the object is not in the cache, Forefront TMG checks the Web chaining rules (FPCRoutingRule objects) to determine whether the request will be forwarded directly to the requested Web server, to another upstream proxy server, or to a specific alternate destination. If the object is in the cache, Forefront TMG performs the following steps:
If the object is valid, Forefront TMG retrieves the object from the cache and returns it to the user.
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.