Skip to content

Commit 75b09f5

Browse files
[Cache] Adds clarification about Cloudflare-Cdn-Cache-Control. (#23203)
* Adds clarification about `Cloudflare-Cdn-Cache-Control`. * Update src/content/docs/cache/concepts/cache-control.mdx
1 parent afeb51a commit 75b09f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/cache/concepts/cache-control.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ Certain scenarios also affect Origin Cache Control behavior when it is enabled o
196196
</tbody>
197197
</table>
198198

199+
:::note
200+
When the `Cloudflare-Cdn-Cache-Control` header is set, OCC is turned **on** (regardless of whether OCC is enabled or disabled). As a result, we apply our Authorization header logic (per [RFC 7234, Section 3.2](https://tools.ietf.org/html/rfc7234#section-3.2)) to allow only the `s-maxage`, `must-revalidate`, or `public` directives. If any other directive is present, we do not cache the asset and instead return `BYPASS`.
201+
:::
202+
199203
## Examples
200204

201205
Review the examples below to learn which directives to use with the `Cache-Control` header to control specific caching behavior.

0 commit comments

Comments
 (0)