Cache everything for hostnames in a list

Cache everything for hostnames in a list

Last updated Jun 12, 2026 to cache everything for hostnames that match a custom hostname list:

  • When incoming requests match: Custom filter expression
  • Using the Expression Builder:
    Hostname is in list "my_hostnames"
  • Using the Expression Editor:
    (http.host in $my_hostnames)
  • Then:
  • Cache eligibility: Eligible for cache

Note

The is in list operator requires an Enterprise plan. You must first create a hostname list in your account before you can reference it in a cache rule expression.

Was this helpful?

YesNo

On this page

Cache everything for hostnames in a list - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cache/how-to/cache-rules/examples/cache-by-hostname-list/#page","headline":"Cache everything for hostnames in a list","description":"Cache everything for hostnames in a list","url":"https://developers.cloudflare.com/cache/how-to/cache-rules/examples/cache-by-hostname-list/","inLanguage":"en","image":"https://developers.cloudflare.com/cache/how-to/cache-rules/examples/cache-by-hostname-list/og.png?v=54e644179aae6ace","dateModified":"2026-06-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Cache Deception Armor title: Cache Deception Armor image: https://developers.cloudflare.com/cache/how-to/cache-rules/examples/cache-deception-armor/og.png?v=b97e5521f9c0ed27


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cache/llms.txt
Use this file to discover all available pages before exploring further.