From 462e16e049626a189f38f8cb222f45688635fef6 Mon Sep 17 00:00:00 2001 From: anthocf Date: Tue, 8 Oct 2024 16:14:58 -0400 Subject: [PATCH 1/2] Add note about minimum_file_size for configuring cache reserve in cache rule --- src/content/docs/cache/how-to/cache-rules/settings.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/docs/cache/how-to/cache-rules/settings.mdx b/src/content/docs/cache/how-to/cache-rules/settings.mdx index 1124ef302ac0086..53b84ff2172f01f 100644 --- a/src/content/docs/cache/how-to/cache-rules/settings.mdx +++ b/src/content/docs/cache/how-to/cache-rules/settings.mdx @@ -246,6 +246,10 @@ This rule can also be used to specify Cache Reserve eligibility for website reso Cloudflare will still enforce the plan-based [cacheable file limits](/cache/concepts/default-cache-behavior/#customization-options-and-limits) when using this configuration. ::: +:::note + +If `minimum_file_size` is omitted and `eligible` is true, Cloudflare will use 0 bytes by default. +:::
From e87cc3c43459c202c1d022e260e73d916aff7a4e Mon Sep 17 00:00:00 2001 From: Angela Costa Date: Thu, 10 Oct 2024 11:55:45 +0100 Subject: [PATCH 2/2] Moved note inside API information. --- src/content/docs/cache/how-to/cache-rules/settings.mdx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/content/docs/cache/how-to/cache-rules/settings.mdx b/src/content/docs/cache/how-to/cache-rules/settings.mdx index 53b84ff2172f01f..024bc2dedcece08 100644 --- a/src/content/docs/cache/how-to/cache-rules/settings.mdx +++ b/src/content/docs/cache/how-to/cache-rules/settings.mdx @@ -246,11 +246,6 @@ This rule can also be used to specify Cache Reserve eligibility for website reso Cloudflare will still enforce the plan-based [cacheable file limits](/cache/concepts/default-cache-behavior/#customization-options-and-limits) when using this configuration. ::: -:::note - -If `minimum_file_size` is omitted and `eligible` is true, Cloudflare will use 0 bytes by default. -::: -
API configuration object name: `"cache_reserve"`. @@ -267,6 +262,10 @@ API property name for enabling Cache Reserve: `"eligible"` (boolean). } ``` +:::note +If `minimum_file_size` is omitted and `eligible` is true, Cloudflare will use 0 bytes by default. +::: + Refer to [Create a cache rule via API](/cache/how-to/cache-rules/create-api/#example-requests) for complete API examples.