modifyIncomingResponseHeader


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

Depending on the type of action you want to perform, specify the corresponding standard header name, or a custom‚ÄčHeader‚ÄčName if the standard name is set to OTHER. The header‚ÄčValue serves as a match condition when the action is DELETE or MODIFY, and the new‚ÄčHeader‚ÄčValue applies when the action is ADD or MODIFY.

See also modify‚ÄčIncoming‚ÄčRequest‚ÄčHeader, modify‚ÄčOutgoing‚ÄčRequest‚ÄčHeader, and modify‚ÄčOutgoing‚ÄčResponse‚ÄčHeader.

OptionTypeDescriptionRequires
actionenum

Either ADD, DELETE, MODIFY, or PASS incoming HTTP response headers.

{"displayType":"enum","options":["ADD","DELETE","MODIFY","PASS"],"tag":"select"}
ADD

Add the header.

DELETE

Delete the header.

MODIFY

Modify the header.

PASS

Pass through the header.

standard‚ÄčAdd‚ÄčHeader‚ÄčNameenum

If the value of action is ADD, this specifies the name of the field to add.

action is ADD
{"displayType":"enum","options":["CACHE_CONTROL","CONTENT_TYPE","EDGE_CONTROL","EXPIRES","LAST_MODIFIED","OTHER"],"tag":"select"}
{"if":{"attribute":"action","op":"eq","value":"ADD"}}
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 another header to add.

standard‚ÄčDelete‚ÄčHeader‚ÄčNameenum

If the value of action is DELETE, this specifies the name of the field to remove.

action is DELETE
{"displayType":"enum","options":["CACHE_CONTROL","CONTENT_TYPE","VARY","OTHER"],"tag":"select"}
{"if":{"attribute":"action","op":"eq","value":"DELETE"}}
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‚ÄčNameenum

If the value of action is MODIFY, this specifies the name of the field to modify.

action is MODIFY
{"displayType":"enum","options":["CACHE_CONTROL","CONTENT_TYPE","EDGE_CONTROL","OTHER"],"tag":"select"}
{"if":{"attribute":"action","op":"eq","value":"MODIFY"}}
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‚ÄčNameenum

If the value of action is PASS, this specifies the name of the field to pass through.

action is PASS
{"displayType":"enum","options":["CACHE_CONTROL","EXPIRES","PRAGMA","OTHER"],"tag":"select"}
{"if":{"attribute":"action","op":"eq","value":"PASS"}}
CACHE_‚ÄčCONTROL

Pass through the Cache-Control header.

EXPIRES

Pass through the Expires header.

PRAGMA

Pass through the Pragma header.

OTHER

Specify another header to pass.

custom‚ÄčHeader‚ÄčNamestring (allows¬†variables)

Specifies a custom field name that applies when the relevant standard header name is set to OTHER.

standard‚ÄčAdd‚ÄčHeader‚ÄčName is OTHER
OR¬†standard‚ÄčDelete‚ÄčHeader‚ÄčName is OTHER
OR¬†standard‚ÄčModify‚ÄčHeader‚ÄčName is OTHER
OR¬†standard‚ÄčPass‚ÄčHeader‚ÄčName is OTHER
{"displayType":"string","tag":"input","type":"text"}
{"if":{"op":"or","params":[{"attribute":"standardAddHeaderName","op":"eq","value":"OTHER"},{"attribute":"standardDeleteHeaderName","op":"eq","value":"OTHER"},{"attribute":"standardModifyHeaderName","op":"eq","value":"OTHER"},{"attribute":"standardPassHeaderName","op":"eq","value":"OTHER"}]}}
header‚ÄčValuestring (allows¬†variables)

Specifies the header's new value.

action is ADD
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"action","op":"eq","value":"ADD"}}
new‚ÄčHeader‚ÄčValuestring (allows¬†variables)

Specifies an HTTP header replacement value.

action is MODIFY
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"action","op":"eq","value":"MODIFY"}}
avoid‚ÄčDuplicate‚ÄčHeadersboolean

When enabled with the action set to MODIFY, prevents creation of more than one instance of a header.

action is MODIFY
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"action","op":"eq","value":"MODIFY"}}