modify_​outgoing_​response_​header

Version: v2024-08-13Includes use: Yes

Behavior name: Modify Outgoing Response Header

Modify, add, remove, or pass along specific response headers going downstream towards the client.

Related behaviors:

Default behavior

These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.

data "akamai_property_rules_builder" "modify_outgoing_response_header" { rules_v2025_02_18 { name = "Modify Outgoing Response Header" comments = "Modifies, adds, removes, or passes along specific response headers going downstream towards the client." behavior { modify_outgoing_response_header { action = "ADD" standard_add_header_name = "CACHE_CONTROL" headerValue = "" } } } }
"behaviors": [ { "name": "modifyOutgoingResponseHeader", "options": { "action": "ADD", "standardAddHeadername": "CACHE_CONTROL", "headerValue": "" } } ]

Options

Option Description
action
The action to take on incoming HTTP request headers. Value is one of:
  • ADD. Add the header.
  • DELETE. Delete the header.
  • MODIFY. Modify the header.
  • REGEX. Pass through the header.
standard_​add_​header_​name
Specifies the name of the field to add. Value is one of:
  • CACHE_CONTROL
  • CONTENT_DISPOSITION
  • CONTENT_TYPE
  • EDGE_CONTROL
  • P3P
  • PRAGMA
  • ACCESS_CONTROL_ALLOW_ORIGIN
  • ACCESS_CONTROL_ALLOW_METHODS
  • ACCESS_CONTROL_ALLOW_HEADERS
  • ACCESS_CONTROL_ALLOW_EXPOSE_HEADERS
  • ACCESS_CONTROL_ALLOW_CREDENTIALS
  • ACCESS_CONTROL_MAX_AGE
  • OTHER
standard_​delete_​header_​name
Specifies the name of the field to remove. Value is one of:
  • CACHE_CONTROL
  • CONTENT_DISPOSITION
  • CONTENT_TYPE
  • EXPIRES
  • P3P
  • PRAGMA
  • ACCESS_CONTROL_ALLOW_ORIGIN
  • ACCESS_CONTROL_ALLOW_METHODS
  • ACCESS_CONTROL_ALLOW_HEADERS
  • ACCESS_CONTROL_ALLOW_EXPOSE_HEADERS
  • ACCESS_CONTROL_ALLOW_CREDENTIALS
  • ACCESS_CONTROL_MAX_AGE
  • OTHER
standard_​modify_​header_​name
Specifies the name of the field to modify. Value is one of:
  • CACHE_CONTROL
  • CONTENT_DISPOSITION
  • CONTENT_TYPE
  • P3P
  • PRAGMA
  • ACCESS_CONTROL_ALLOW_ORIGIN
  • ACCESS_CONTROL_ALLOW_METHODS
  • ACCESS_CONTROL_ALLOW_HEADERS
  • ACCESS_CONTROL_ALLOW_EXPOSE_HEADERS
  • ACCESS_CONTROL_ALLOW_CREDENTIALS
  • ACCESS_CONTROL_MAX_AGE
  • OTHER
custom_​header_​name
Specifies a custom field name.
header_​value
Specifies the new header value.
new_header_​value
Supplies an HTTP header replacement value
avoid_​duplicate_​headers
Prevents creation of more than one instance of a header.
regex_​header_​match
Specifies a Perl-compatible regular expression to match within the header value.
regex_​header_​replace
Specifies text that replaces the regex_​header_​match pattern within the header value.
match_​multiple
When enabled with the action set to REGEX replaces all occurrences of the matched regular expression, otherwise only the first match if disabled.