Caching XDIME pages

In the XDIME canvas element, you can use the cacheScope attribute to enable or disable the caching of the rendered XDIME page.

In the XDIME canvas element, you can use the cacheScope attribute to enable or disable the caching of the rendered XDIME page.

Note:

Page caching is not supported by Mobile Portal Accelerator.

The default value for page caching, which is 'none', is set in the default-scope attribute on the page-cache element in the mcs-config.xml file. You can override this value, or any other value that has been set, with three possible values for the cacheScope attribute on the canvas element for individual pages. The other possible values, 'optimistic' and 'safe', enable caching for the page, and affect the way that MCS calculates a cache key on the XDIME content.

External cache properties

You can use name and content attribute values on the meta element to express further caching properties that may be used by services that are downstream of MCS.

Name attribute value Description
mcs-no-cache No caching takes place (default). If the property has one of the other possible values, caching is enabled and the cache will contain the entire content rendered for the target device.
mcs-cache-max-age Value in seconds before the cache expires. Only meaningful when the cache is enabled.
mcs-cache-expires Sets an explicit expiry HTTP-date on the cache headers returned
mcs-cache-auto MCS takes into account the cache time determined by the pipeline in addition to other factors

Related topics