ui.modern.cache.form.[formName].content_type
Sets custom content type header for a specified cache template
Key: ui.modern.cache.form.[formName].content_type
Type: String
Can be set in: profile.cfg, collection.cfg
Description
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.
Examples
If you have a custom cache template named csv-export.cache.ftl
that outputs cached documents as CSV:
ui.modern.cache.form.csv-export.content_type=text/csv
If you have a custom cache template named rss.cache.ftl
that outputs XML data:
ui.modern.cache.form.rss.content_type=application/rss+xml