contentType

  • Property Manager name: Content Type
  • Criteria version: The v2024-10-21 rule format supports the contentType criteria v1.1.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: Yes

Matches the HTTP response header's Content-Type.

Warning. The Content Type match was updated in April 2023 and the change affects configurations that implement it together with the gzip​Response behavior. With the new change, if the origin server sends out the content in an uncompressed format, the Akamai edge servers cache it and deliver it to the requesting client in the compressed .gzip format. Clients using the Content-Length response header to determine the file size will now see the compressed size of the object returned from Akamai, rather than the uncompressed size of the object returned from the origin. If you updated your property configuration after April 3rd 2023, your content​Type match is affected by this change.

OptionTypeDescriptionRequires
match​Operatorenum

Matches any Content-Type among specified values when set to IS_​ONE_​OF, otherwise IS_​NOT_​ONE_​OF reverses the match.

{"displayType":"enum","options":["IS_ONE_OF","IS_NOT_ONE_OF"],"tag":"select"}
IS_​ONE_​OF

Matches any Content-Type among the specified values.

IS_​NOT_​ONE_​OF

Matches none of the specified values.

valuesstring array

Content-Type response header value, for example text/html.

{"displayType":"string array","tag":"input","todo":true}
match​Wildcardboolean

Allows wildcards in the value field, where ? matches a single character and * matches zero or more characters. Specifying text/* matches both text/html and text/css.

{"displayType":"boolean","tag":"input","type":"checkbox"}
match​Case​Sensitiveboolean

Sets a case-sensitive match for all values.

{"displayType":"boolean","tag":"input","type":"checkbox"}