Sets custom content type header for a given cache form

Key: ui.modern.cache.form.[formName].content_type
Type: String
Can be set in: profile.cfg, collection.cfg


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 form file for which it applies: ui.modern.cache.form.[form 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.

Default Value

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


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


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


© 2015- Squiz Pty Ltd