Modify, add, remove, or pass along specific response headers coming downstream from the origin.
Why do you need it?
Use this behavior to decide how selected-response headers coming downstream from the origin should be processed. For example, you can add headers such as Cache-Control or Expires to specify caching policy and ensure the security of users’ cookies. By controlling the content of your headers you can further customize your website visitor’s experience and gain insight into how it’s used.
How it works
When enabled, this behavior modifies the specified incoming response header according to set rules. A response header added using this behavior is effectively added before the object is processed by the Akamai server, so if the response is cacheable, it is stored with the cached object. This is in contrast to the Modify Outgoing Response Header behavior, which adds the response header after the response is processed by the Akamai server and retrieved either from the customer origin or from the cache, immediately before it is sent to the requesting client.
Features and options
Field | What it does | Sub-options |
---|---|---|
Action | Specifies the action to perform on the header. |
|
Select Header Name | Select from standard pre-defined headers to modify. | With Action set to Add.
With Action set to Remove.
With Action set to Modify.
With Action set to Pass:
|
Header Value | With Action set to Add, enter your HTTP header value.
Variable Support: This option supports variable expression syntax. Typing {{ in the option field triggers variable auto-complete. Learn more about variable support. |
|
Custom Header Name | With Select Header Name set to Other…, enter a custom HTTP header name.
Variable Support: This option supports variable expression syntax. Typing {{ in the option field triggers variable auto-complete. Learn more about variable support. |
|
New Header Value | With Action set to Modify, enter your new HTTP header value.
Variable Support: This option supports variable expression syntax. Typing {{ in the option field triggers variable auto-complete. Learn more about variable support. |
|
Avoid Duplicate Headers | With Action set to Modify, prevents multiple headers with the same name from being created. Note that this applies only to headers added using this behavior – it does not apply to headers added at the origin. |