Skip to content
Merged
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 @@ -28,17 +28,17 @@ Before starting - be sure that Cloudflare is set to respect `Cache-Control` he

***

## Cache Static HTML with Cloudflare Page Rules
## Cache Static HTML with Cloudflare Cache Rules

1\. Log in to your Cloudflare account.

2\. Go to **Rules >** **Page Rules** and select **Create Page Rule**.
2\. Go to **Rules >** **Overview** and select **Create Cache Rule**.

3\. Set the page 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/).
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/).

4\. Select the appropriate settings to cache static HTML:

* *Cache Everything* instructs Cloudflare to cache static HTML.
* *Eligible for cache* instructs Cloudflare to cache static HTML.
* 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:

:::caution
Expand Down