Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: example
summary: Browser Cache TTL
title: Browser Cache TTL
description: Browser Cache TTL
description: Set a custom browser cache TTL using a cache rule.
products: [cache-rules]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: example
summary: Bypass Cache on Cookie
title: Bypass Cache on Cookie
description: Bypass Cache on Cookie
description: Bypass cache when a specific cookie is present.
products: [cache-rules]
tags:
- Cookies
Expand All @@ -12,7 +12,7 @@ import { Example, Render } from "~/components";

<Render file="page-rules-migration" product="cache" />

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to bypass cache for requests containing cookie `test_cookie` for any hostname containing `example.com`:
[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to bypass cache for requests containing cookie `test-cookie` for any hostname containing `example.com`:

<Example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: example
summary: Cache Deception Armor
title: Cache Deception Armor
description: Cache Deception Armor
description: Turn on Cache Deception Armor using a cache rule.
products: [cache-rules]
tags:
- Security
Expand All @@ -12,7 +12,7 @@ import { Example, Render } from "~/components";

<Render file="page-rules-migration" product="cache" />

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to protect against cache deception attacks for any hostname containing `example.com`:
[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to protect against [cache deception attacks](/cache/cache-security/cache-deception-armor/) for any hostname containing `example.com`:

<Example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: example
summary: Cache by Device Type
title: Cache by Device Type
description: Cache by Device Type
description: Cache different content based on device type.
products: [cache-rules]
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: example
summary: Cache Level (Cache Everything)
title: Cache Level (Cache Everything)
description: Cache Level (Cache Everything)
description: Cache all content for a hostname using a cache rule.
products: [cache-rules]
---

Expand Down Expand Up @@ -32,4 +32,5 @@ This option caches all HTML regardless of the presence of dynamic content. If yo
- Checking for the presence of a cookie.
- Negative matching against known dynamic content file paths.
- Negative matching against dynamic content extensions (or lack of an extension).
:::

:::
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ products: [cache-rules]

import { Example } from "~/components";

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to adjust edge cache TTL for caching resources on Cloudflare edge to one day, for any hostname containing `example.com`:
[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to set the edge cache TTL to one day for any hostname containing `example.com`:

<Example>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
pcx_content_type: example
summary: Origin Cache Control
title: Origin Cache Control
description: Origin Cache Control
description: Configure Origin Cache Control using a cache rule.
products: [cache-rules]
---

import { Example } from "~/components"
import { Example } from "~/components";

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to determine edge cache behavior for any hostname containing `example.com`:

<Example>

* **When incoming requests match**: Custom filter expression
* Using the Expression Builder:<br/>
- **When incoming requests match**: Custom filter expression
- Using the Expression Builder:<br/>
`Hostname contains "example.com"`
* Using the Expression Editor:<br/>
- Using the Expression Editor:<br/>
`(http.host contains "example.com")`

* **Then**:
* **Cache eligibility**: Eligible for cache
* **Setting**: Origin Cache Control
* **Enable Origin Cache Control**: Off
- **Then**:
- **Cache eligibility**: Eligible for cache
- **Setting**: Origin Cache Control
- **Enable Origin Cache Control**: Off

</Example>
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
pcx_content_type: example
summary: Query String Sort
title: Query String Sort
description: Query String Sort
description: Sort query string parameters for caching using a cache rule.
products: [cache-rules]
---

import { Example } from "~/components"
import { Example } from "~/components";

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to sort query string parameters for caching purposes, for any hostname containing `example.com`:

<Example>

* **When incoming requests match**: Custom filter expression
* Using the Expression Builder:<br/>
- **When incoming requests match**: Custom filter expression
- Using the Expression Builder:<br/>
`Hostname contains "example.com"`
* Using the Expression Editor:<br/>
- Using the Expression Editor:<br/>
`(http.host contains "example.com")`

* **Then**:
* **Cache eligibility**: Eligible for cache
* **Setting**: Cache key
* **Sort query string**: On
- **Then**:
- **Cache eligibility**: Eligible for cache
- **Setting**: Cache key
- **Sort query string**: On

</Example>
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
pcx_content_type: example
summary: Respect Strong ETags
title: Respect Strong ETags
description: Respect Strong ETags
description: Preserve strong ETag headers using a cache rule.
products: [cache-rules]
---

import { Example } from "~/components"
import { Example } from "~/components";

[Create a cache rule](/cache/how-to/cache-rules/create-dashboard/) to respect strong ETags for any hostname containing `example.com`:

<Example>

* **When incoming requests match**: Custom filter expression
* Using the Expression Builder:<br/>
- **When incoming requests match**: Custom filter expression
- Using the Expression Builder:<br/>
`Hostname contains "example.com"`
* Using the Expression Editor:<br/>
- Using the Expression Editor:<br/>
`(http.host contains "example.com")`

* **Then**:
* **Cache eligibility**: Eligible for cache
* **Setting**: Respect strong ETags
* **Use strong ETag headers**: On
- **Then**:
- **Cache eligibility**: Eligible for cache
- **Setting**: Respect strong ETags
- **Use strong ETag headers**: On

</Example>
Loading