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.

 

ValueMeaning
clDefaultSatisfies 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.
clNoCacheNoStoreNever 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.
clReloadSatisfies 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

TScRequestCachePolicy.Level

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support