Advertising disclosure: We may earn a commission from links on this site. Commercial relationships can affect placement. Product facts, limitations, and source dates remain part of our editorial record.

How funding works
Web Hosting

Cloudflare Cache Deception Armor: A Guide for Website Owners

How Cloudflare Cache Deception Armor works, how to configure it in a Cache Rule, and what website owners should verify before enabling it.

Review sources
Research standard

Facts that can change should include a source and check date. Benchmark claims should state the plan, region, method, and test period.

If your site uses Cloudflare and you want to apply the vendor's documented Cache Deception Armor configuration, create a Cache Rule for the intended hostname, set Cache eligibility to Eligible for cache, and turn Cache deception armor On under Cache key. Replace example.com with your domain and verify that the rule covers only the traffic you intend to cache.

What Cache Deception Armor means here#

Cloudflare describes its cache as storing copies of frequently accessed content in distributed data centers. Its Cache Rules let website owners specify which resources should be cached and for how long.

In Cloudflare's documented example, Cache deception armor is a setting within the rule's Cache key section. The example is specific to Cloudflare's Cache Rules and does not establish that other hosting or CDN providers offer an equivalent setting or behave the same way.

Configure the documented Cloudflare rule#

  1. Create or open the Cache Rule that should apply to your site traffic.
  2. Add a custom filter expression for the intended hostname. Cloudflare's example uses:
  • Expression Builder: Hostname contains "example.com"
  • Expression Editor: (http.host contains "example.com")
  1. Set Cache eligibility to Eligible for cache.
  2. Under Cache key, turn Cache deception armor On.
  3. Replace example.com with your own hostname and review the rule scope before applying it.

Checks before applying it#

The hostname condition is the part that needs site-specific attention. Confirm that the expression matches your domain and does not unintentionally include other site traffic. If the rule is broader than intended, adjust the hostname filter in Cloudflare's rule editor.

The documented steps describe how to configure the option; they are not a test of your site and do not provide a performance measurement or guarantee. After configuration, verify the rule settings in Cloudflare and assess the result for your own traffic.

For the vendor's complete example, see Cloudflare's Cache Deception Armor documentation.

Sources

  1. Cloudflare: Cache Deception Armor Checked 2026-11-15
  2. Cloudflare cache documentation Checked 2026-11-15