You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/cache/how-to/edge-browser-cache-ttl/set-browser-ttl.mdx
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ sidebar:
6
6
7
7
---
8
8
9
+
import { DashButton } from"~/components";
10
+
9
11
Specify a time for a visitor’s Browser Cache TTL to accelerate the page load for repeat visitors to your website. To configure cache duration within Cloudflare’s data centers, refer to [Edge Cache TTL](/cache/how-to/cache-rules/settings/#edge-ttl).
10
12
11
13
By default, Cloudflare honors the cache expiration set in your `Expires` and `Cache-Control` headers. Cloudflare overrides any `Cache-Control` or `Expires` headers with values set via the **Browser Cache TTL** option under **Caching** on your dashboard if:
@@ -27,8 +29,10 @@ If you modify cached assets, the new asset is not displayed to repeat visitors b
27
29
28
30
:::
29
31
30
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
31
-
2. Go to **Caching** > **Configuration**.
32
-
3. Under **Browser Cache TTL**, select the desired cache expiration time from the drop-down menu.
32
+
1. In the Cloudflare dashboard, go to the **Caching** page.
2. Under **Browser Cache TTL**, choose **Respect Existing Headers**.
26
30
27
31
Now, you can configure the *Bypass Cache on Cookie* setting using Cloudflare **Cache Rules**.
28
32
@@ -32,11 +36,13 @@ Now, you can configure the *Bypass Cache on Cookie* setting using Cloudflare
32
36
33
37
When the *Bypass Cache on Cookie* page rule matches the criteria we set, Cloudflare will cache static images and other files, without caching HTML. To configure *Bypass Cache on Cookie* using **Cache Rules**,
34
38
35
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
36
-
2. Go to **Rules > Page Rules**.
37
-
3. Select **Create Page Rule** button and enter your domain. In the example below, the domain is [www.orangeclouded.com](http://www.orangeclouded.com).
39
+
1. In the Cloudflare dashboard, go to the **Rules** page.
2. Select **Create Page Rule** button and enter your domain. In the example below, the domain is [www.orangeclouded.com](http://www.orangeclouded.com).
38
44
39
-
4. Configure the Page Rules settings as follows:
45
+
3. Configure the Page Rules settings as follows:
40
46
41
47
* use the *\** wildcard operator on the Drupal installation path to match the entire domain
Copy file name to clipboardExpand all lines: src/content/docs/support/third-party-software/content-management-system-cms/caching-static-html-with-wordpresswoocommerce.mdx
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ title: Caching Static HTML with WordPress/WooCommerce
5
5
6
6
---
7
7
8
+
import { DashButton } from"~/components";
9
+
8
10
## Overview
9
11
10
12
:::note
@@ -22,19 +24,23 @@ Enterprise Cloudflare customers can use *Custom Cache Keys* to take their perf
22
24
23
25
Before starting - be sure that Cloudflare is set to respect `Cache-Control` headers from your origin web server; otherwise, you may find `Cache-Control` headers are overridden by Cloudflare with the value set in the **Browser Cache TTL** option. To set the **Respect Existing Headers** option:
24
26
25
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
26
-
2. Go to **Caching** > **Configuration**.
27
-
3. Under **Browser Cache TTL**, select the **Respect Existing Headers** value.
27
+
1. In the Cloudflare dashboard, go to the **Caching** page.
2. Under **Browser Cache TTL**, select the **Respect Existing Headers** value.
28
32
29
33
***
30
34
31
35
## Cache Static HTML with Cloudflare Cache Rules
32
36
33
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
34
-
2. Go to **Caching** > **Cache Rules**.
35
-
3. Select **Create rule**.
36
-
4. Set the cache rule to match your WordPress installation path. If your site is at [https://www.example.com](https://www.example.com), the rule would be [https://www.example.com](https://www.example.com/).
37
-
5. Select the appropriate settings to cache static HTML:
37
+
1. In the Cloudflare dashboard, go to the **Caching** page.
3. Set the cache rule to match your WordPress installation path. If your site is at [https://www.example.com](https://www.example.com), the rule would be [https://www.example.com](https://www.example.com/).
43
+
4. Select the appropriate settings to cache static HTML:
38
44
39
45
**Eligible for cache* instructs Cloudflare to cache static HTML.
40
46
* When the *Bypass Cache on Cookie* rule matches the criteria you set, Cloudflare won't cache HTML ([though static images and other files will still be cached](/cache/concepts/default-cache-behavior/)). Depending on whether you're using raw WordPress, or WooCommerce, you should use one of the configurations below:
@@ -52,6 +58,6 @@ Before starting - be sure that Cloudflare is set to respect `Cache-Control` he
52
58
53
59
* Finally, setting *Edge Cache TTL* will define the maximum period of time Cloudflare should keep cached files before getting them back from the origin web server. Even after setting a long Edge Cache TTL time, you can still [manually clear the cache](https://support.cloudflare.com/hc/en-us/articles/200169246-How-do-I-purge-my-cache-) or use our WordPress plugin to automatically manage cache purging.
54
60
55
-
6. Select **Save and Deploy**.
61
+
5. Select **Save and Deploy**.
56
62
57
63
Additionally, by using the [*Automatic Cache Management* feature of the Cloudflare WordPress plugin](https://support.cloudflare.com/hc/en-us/articles/115002708027-What-does-Automatic-Cache-Management-in-the-Cloudflare-Plugin-do-), you are able to automatically purge the cache for your site after your site changes (i.e. changing/customizing your theme or editing, deleting or creating a post, attachment or page).
Copy file name to clipboardExpand all lines: src/content/docs/support/third-party-software/e-commerce/caching-static-html-with-magento-business-and-enterprise-only.mdx
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ title: Caching Static HTML with Magento (Business and Enterprise only)
5
5
6
6
---
7
7
8
+
import { DashButton } from"~/components";
9
+
8
10
## Overview
9
11
10
12
:::note
@@ -22,14 +24,19 @@ Before logging in to the Magento admin panel or adding something to a shopping c
22
24
23
25
To cache static HTML using Cloudflare Page Rules:
24
26
25
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain.
26
-
2. Go to **Caching** > **Configuration**.
27
-
3. Under **Browser Cache TTL**, choose **Respect Existing Headers**.
27
+
1. In the Cloudflare dashboard, go to the **Caching** page.
4. Select **Create Page Rule** and enter your domain. In the example below, the domain is `www.orangeclouded.com`.
33
40
34
41
**Cache Everything* will instruct Cloudflare to cache static HTML.
35
42
* When the *Bypass Cache on Cookie* rule matches the criteria we set, Cloudflare won't cache HTML ([though static images and other files will still be cached](/cache/concepts/default-cache-behavior/)). Depending on whether you're using Magento 1 or Magento 2, you will need a different rule:
@@ -40,7 +47,7 @@ With this setting in place, you can set the necessary Page Rules to cache anonym
40
47
41
48

import { Example, DashButton } from"~/components";
8
8
9
9
## Overview
10
10
@@ -26,7 +26,11 @@ Below, you will need to add DNS records for a subdomain and the apex domain (als
26
26
27
27
### Step 2a - Add a subdomain
28
28
29
-
To start, log in to your [Cloudflare dashboard](https://dash.cloudflare.com), and select your account and domain., navigate to the **DNS** app and add a 'www' *CNAME* record that points to the custom domain (also known as *DNS target*) that you obtained in Step 1 above for your subdomain.
29
+
In the Cloudflare dashboard, go to the **DNS** page.
30
+
31
+
<DashButtonurl="/?to=/:account/:zone/dns" />
32
+
33
+
Add a 'www' *CNAME* record that points to the custom domain (also known as *DNS target*) that you obtained in Step 1 above for your subdomain.
0 commit comments