This option can be used to specify a custom content type for the response returned for cached copies.

The parameter name must contain the name of the template file for which it applies: ui.modern.cache.form.TEMPLATE_NAME.content_type

The default content-type for cached copies will either be text/html or text/xml, depending of the type of the document. This option allows you to specify a custom content type if your cache form returns some other type of content.

Setting the key

Set this configuration key in the results page (preferred) or search package configuration.

Use the configuration key editor to add or edit the ui.modern.cache.form.[formName].content_type key, and set the value. This can be set to any valid String value.

Default value

No value (which causes text/html or text/xml to be selected automatically).


If you have a custom cache template named csv-export.cache.ftl that outputs cached documents as CSV:


If you have a custom cache template named rss.cache.ftl that outputs XML data: