modify_​incoming_​response_​header

Version: v2023-09-20Includes use: Yes

Behavior name: Modify Incoming Response Header

Modify, add, remove, or pass along specific response headers coming downstream from the origin.

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_incoming_response_header" { rules_v2023_09_20 { name = "Modify Incoming Response Header" comments = "Modifies, adds, removes, or passes along specific response headers coming downstream from the origin." behavior { modify_incoming_response_header { action = "ADD" standard_add_header_name = "CACHE_CONTROL" header_value = "" } } } }
"behaviors": [ { "name": "modifyIncomingResponseHeader", "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.
  • PASS. Pass through the header.
standard_add_header_name
Specifies the name of the field to add. Value is one of:
  • CACHE_CONTROL. The CACHE_CONTROL header.
  • CONTENT_TYPE. The CONTENT_TYPE header
  • EDGE_CONTROL. The EDGE_CONTROL header.
  • EXPIRES. The EXPIRES header.
  • LAST_MODIFIED. The LAST_MODIFIED header.
  • OTHER. Specify the header to add.
standard_delete_header_name
Specifies the name of the field to remove. Value is one of:
  • CACHE_CONTROL. The CACHE_CONTROL header.
  • CONTENT_TYPE. The CONTENT_TYPE header
  • VARY. The VARY header.
  • OTHER. Specify another header to remove.
standard_modify_header_name
Specifies the name of the field to modify. Value is one of:
  • CACHE_CONTROL. The CACHE_CONTROL header.
  • CONTENT_TYPE. The CONTENT_TYPE header
  • EDGE_CONTROL. The EDGE_CONTROL header.
  • OTHER. Specify another header to modify.
standard_pass_header_name
Specifies the name of the field to pass through. Value is one of:
  • CACHE_CONTROL. The CACHE_CONTROL header.
  • EXPIRES. The EXPIRES header.
  • PRAGMAThe PRAGMA header.
  • OTHERSpecify another header to pass.
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.