header
- Topics:
- Dynamic Media Classic,SDK/API
CREATED FOR:
- Developer
- User
HTTP response header element. Optional in <rule>
elements.
Attributes
Name
= “text” : Required. Specifies the name of the HTTP header.
Action
= “set” | "add"
: Optional. Default is "set"
, which replaces any current header value. Specify "add"
so you can append the header value, separated with a comma.
Data
Header value.
Description
Allows adding new HTTP response headers and adding or replacing values of pre-defined headers. Names and values must conform to HTTP standards. No additional encoding is applied.
Image Serving substitution variables may be used in the header name and the header value. This allows controlling both strings from the request.
Example
The following rule applies a custom header when the header value is specified in the request as a variable:
<rule OnMatch="continue">
<expression>\$Edge-Control=</expression>
<header Name="Edge-Control">$Edge-Control$</header>
</rule>
This rule is triggered by the following request, setting the HTTP response header Edge-Control::no-store
:
http://server/is/image/cat/id?$Edge-Control=no-store