Skip to content
Start here

Cache

CacheCache Reserve

resource cloudflare_zone_cache_reserve

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
value?: String

Value of the Cache Reserve zone setting.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

cloudflare_zone_cache_reserve

resource "cloudflare_zone_cache_reserve" "example_zone_cache_reserve" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  value = "on"
}

data cloudflare_zone_cache_reserve

required Expand Collapse
zone_id: String

Identifier.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

value: String

Value of the Cache Reserve zone setting.

cloudflare_zone_cache_reserve

data "cloudflare_zone_cache_reserve" "example_zone_cache_reserve" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}

CacheSmart Tiered Cache

resource cloudflare_tiered_cache

required Expand Collapse
zone_id: String

Identifier.

value: String

Enable or disable the Smart Tiered Cache.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

cloudflare_tiered_cache

resource "cloudflare_tiered_cache" "example_tiered_cache" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  value = "on"
}

data cloudflare_tiered_cache

required Expand Collapse
zone_id: String

Identifier.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

value: String

Value of the Smart Tiered Cache zone setting.

cloudflare_tiered_cache

data "cloudflare_tiered_cache" "example_tiered_cache" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}

CacheVariants

resource cloudflare_zone_cache_variants

required Expand Collapse
zone_id: String

Identifier.

value: Attributes

Value of the zone setting.

avif?: List[String]

List of strings with the MIME types of all the variants that should be served for avif.

bmp?: List[String]

List of strings with the MIME types of all the variants that should be served for bmp.

gif?: List[String]

List of strings with the MIME types of all the variants that should be served for gif.

jp2?: List[String]

List of strings with the MIME types of all the variants that should be served for jp2.

jpeg?: List[String]

List of strings with the MIME types of all the variants that should be served for jpeg.

jpg?: List[String]

List of strings with the MIME types of all the variants that should be served for jpg.

jpg2?: List[String]

List of strings with the MIME types of all the variants that should be served for jpg2.

png?: List[String]

List of strings with the MIME types of all the variants that should be served for png.

tif?: List[String]

List of strings with the MIME types of all the variants that should be served for tif.

tiff?: List[String]

List of strings with the MIME types of all the variants that should be served for tiff.

webp?: List[String]

List of strings with the MIME types of all the variants that should be served for webp.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

cloudflare_zone_cache_variants

resource "cloudflare_zone_cache_variants" "example_zone_cache_variants" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  value = {
    avif = ["image/webp", "image/jpeg"]
    bmp = ["image/webp", "image/jpeg"]
    gif = ["image/webp", "image/jpeg"]
    jp2 = ["image/webp", "image/avif"]
    jpeg = ["image/webp", "image/avif"]
    jpg = ["image/webp", "image/avif"]
    jpg2 = ["image/webp", "image/avif"]
    png = ["image/webp", "image/avif"]
    tif = ["image/webp", "image/avif"]
    tiff = ["image/webp", "image/avif"]
    webp = ["image/jpeg", "image/avif"]
  }
}

data cloudflare_zone_cache_variants

required Expand Collapse
zone_id: String

Identifier.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

value: Attributes

Value of the zone setting.

avif: List[String]

List of strings with the MIME types of all the variants that should be served for avif.

bmp: List[String]

List of strings with the MIME types of all the variants that should be served for bmp.

gif: List[String]

List of strings with the MIME types of all the variants that should be served for gif.

jp2: List[String]

List of strings with the MIME types of all the variants that should be served for jp2.

jpeg: List[String]

List of strings with the MIME types of all the variants that should be served for jpeg.

jpg: List[String]

List of strings with the MIME types of all the variants that should be served for jpg.

jpg2: List[String]

List of strings with the MIME types of all the variants that should be served for jpg2.

png: List[String]

List of strings with the MIME types of all the variants that should be served for png.

tif: List[String]

List of strings with the MIME types of all the variants that should be served for tif.

tiff: List[String]

List of strings with the MIME types of all the variants that should be served for tiff.

webp: List[String]

List of strings with the MIME types of all the variants that should be served for webp.

cloudflare_zone_cache_variants

data "cloudflare_zone_cache_variants" "example_zone_cache_variants" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}

CacheRegional Tiered Cache

resource cloudflare_regional_tiered_cache

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
value?: String

Value of the Regional Tiered Cache zone setting.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

cloudflare_regional_tiered_cache

resource "cloudflare_regional_tiered_cache" "example_regional_tiered_cache" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  value = "on"
}

data cloudflare_regional_tiered_cache

required Expand Collapse
zone_id: String

Identifier.

computed Expand Collapse
id: String

Identifier.

editable: Bool

Whether the setting is editable.

modified_on: Time

Last time this setting was modified.

value: String

Value of the Regional Tiered Cache zone setting.

cloudflare_regional_tiered_cache

data "cloudflare_regional_tiered_cache" "example_regional_tiered_cache" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}