Unit
ScHttp
type
TScRequestCacheLevel = (clDefault, clNoCacheNoStore, clReload);
Description
The TScRequestCacheLevel enumeration specifies caching behavior for resources obtained using the TScHttpWebRequest class. Members of this enumeration are used to initialize TScRequestCachePolicy objects.
Value | Meaning |
clDefault | Satisfies a request for a resource either by using the cached copy of the resource or by sending a request for the resource to the server. The action taken is determined by the current cache policy and the age of the content in the cache. This is the cache level that should be used by most applications. |
clNoCacheNoStore | Never satisfies a request by using resources from the cache and does not cache resources. If the resource is present in the local cache, it is removed. This policy level indicates to intermediate caches that they should remove the resource. In the HTTP caching protocol, this is achieved using the no-cache cache control directive. |
clReload | Satisfies a request by using the server. The response might be saved in the cache. In the HTTP caching protocol, this is achieved using the no-cache cache control directive and the no-cache Pragma header. |
See also