Variant support enables caching variants of images with certain file extensions in addition to the original. This only applies when the origin server sends the 'Vary: Accept' response header. If the origin server sends 'Vary: Accept' but does not serve the variant requested, the response will not be cached. This will be indicated with BYPASS cache status in the response headers.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/cache_variants",
"title": "Variants Caching",
"allOf": [
{
"$ref": "#/components/schemas/cache_base"
},
{
"properties": {
"id": {
"description": "ID of the zone setting.",
"enum": [
"variants"
],
"example": "variants"
}
}
}
],
"description": "Variant support enables caching variants of images with certain file extensions in addition to the original. This only applies when the origin server sends the 'Vary: Accept' response header. If the origin server sends 'Vary: Accept' but does not serve the variant requested, the response will not be cached. This will be indicated with BYPASS cache status in the response headers."
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.