contentType

  • Property Manager name: Content Type
  • Criteria version: The v2023-10-30 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"}