content_type
Version: v2025-02-18 | Includes use: Yes |
---|
Criterion name: Content Type
Matches the HTTP response header's Content-Type
.
Default criterion
These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.
data "akamai_property_rules_builder" "content_type" {
rules_v2025_02_18 {
name = "Content Type"
comments = "Matches the HTTP response header's Content-Type."
criterion {
content_type {
match_wildcard = true
values = [
"text/html*"
]
match_case_sensitive = false
match_operator = "IS_ONE_OF"
}
}
}
}
"criterion": [
{
"name": "contentType",
"options": {
"matchWildcard": true,
"values": [
"text/html*"
],
"matchCaseSensitive": false,
"matchOperator": "IS_ONE_OF"
}
}
]
Options
Option | Description |
---|---|
match_operator |
Specifies the match's logic. Value is one of:
|
values |
The
Content-Type response header value, for example text/html .
|
match_wildcard |
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 .
|
match_case_sensitive |
values .
|
Sets a case-sensitive match for all
Updated 36 minutes ago