Member variable HttpResponse():ClientCachePolicy Foundation

Controls the browser's client cache policy for the response.

Attribute: EXPORTED
Data type: HttpClientCachePolicy
Description

By default, client caching is disabled. The <CXP/> infrastructure sends back to the client a HTTP header with the "Cache-Control private", cache policy. In addition, for backward compatiblity with HTTP 1.0 "Pragma no-cache" is set. However, in some situations, it may be desirable even for a dynamic web application to allow the client to cache content, eg. for performance reasons. The method ::ClientCachePolicy:Enable([<nSeconds>]) allows to control client-side caching. <nSeconds> defaults to 3600 seconds or 1 day. Calling ::ClientCachePolicy:Disable() disables client caching, and is equivalent to the defaults normally sent in the HTTP header.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.