Provides a resource which customizes Cloudflare zone cache variants.
resource "cloudflare_zone_cache_variants" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
avif = ["image/avif", "image/webp"]
bmp = ["image/bmp", "image/webp"]
gif = ["image/gif", "image/webp"]
jpeg = ["image/jpeg", "image/webp"]
jpg = ["image/jpg", "image/webp"]
jpg2 = ["image/jpg2", "image/webp"]
jp2 = ["image/jp2", "image/webp"]
png = ["image/png", "image/webp"]
tiff = ["image/tiff", "image/webp"]
tif = ["image/tif", "image/webp"]
webp = ["image/jpeg", "image/webp"]
}
zone_id
(String) The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.avif
(Set of String) List of strings with the MIME types of all the variants that should be served for avif.bmp
(Set of String) List of strings with the MIME types of all the variants that should be served for bmp.gif
(Set of String) List of strings with the MIME types of all the variants that should be served for gif.jp2
(Set of String) List of strings with the MIME types of all the variants that should be served for jp2.jpeg
(Set of String) List of strings with the MIME types of all the variants that should be served for jpeg.jpg
(Set of String) List of strings with the MIME types of all the variants that should be served for jpg.jpg2
(Set of String) List of strings with the MIME types of all the variants that should be served for jpg2.png
(Set of String) List of strings with the MIME types of all the variants that should be served for png.tif
(Set of String) List of strings with the MIME types of all the variants that should be served for tif.tiff
(Set of String) List of strings with the MIME types of all the variants that should be served for tiff.webp
(Set of String) List of strings with the MIME types of all the variants that should be served for webp.id
(String) The ID of this resource.