コンテンツにスキップ

キャッシュルール

Cache Rulesを使用して、Cloudflareのキャッシュ設定をカスタマイズします。Cache Rulesを使用すると、キャッシュ対象となるもの、キャッシュの保持期間と場所、Cloudflareのキャッシュや他のRules製品との特定のインタラクションをトリガーする方法を調整できます。

Cache Rulesは、ダッシュボードで、APIを介して、またはTerraformを使用して作成できます。

ルールテンプレート

Cloudflare provides you with rules templates for common use cases. In the dashboard, go to your zone > Rules > Templates and select one of the available templates. You can also refer to the Examples gallery in the developer docs.

利用可能性

以下の表は、プランごとのCache Rulesの利用可能性を示しています。

Free Pro Business Enterprise

Availability

Yes

Yes

Yes

Yes

Number of rules

10 25 50 125

Troubleshooting

When troubleshooting cache rules, use Cloudflare Trace to determine if a rule is triggering for a specific URL.