ui.modern.cache.form.[formName].headers.[key]

Background

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=...

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].headers.[key] key, and set the value. This can be set to any valid String value.

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