ui.modern.cache.form.[formName].headers.[key]
Specify custom headers for a cache template.
Key: ui.modern.cache.form.[formName].headers.[key]
Type: String
Can be set in: profile.cfg, collection.cfg
Description
This option can be used to specify custom HTTP headers for a specified cache template when using the modern UI. When set, Funnelback will send custom HTTP headers in addition to the standard one.
The parameter name must contain the name of the cache template for which it applies,
and must be suffixed by a unique ID:
ui.modern.cache.form.TEMPLATE_NAME.headers.ID
.
The parameter value should be a HTTP header string such as Header-Name: value
.
The colon is used as a separator between the header name, and the value.
A similar parameter is available for
search templates:
ui.modern.form.TEMPLATE_NAME.headers.ID=...
Default Value
There is no default value because the parameter name must contain the name of the template for which it applies.
Examples
If you want to set a Content-Disposition
header as well as a custom X-Powered-By
header
on a template named csv-export.cache.ftl
:
ui.modern.cache.form.csv-export.headers.1=Content-Disposition: attachment; filename=export.csv ui.modern.cache.form.csv-export.headers.2=X-Powered-By: Funnelback enterprise search