UI.modern.cache.form.[formName].content_type
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
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 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).
Examples
If you have a custom cache form 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 form named rss.cache.ftl
that outputs XML data:
ui.modern.cache.form.rss.content_type=application/rss+xml