Skip to content

Cache by Device Type

Cache by Device Type

Create a cache rule to cache content based on user agent or device type for any hostname containing example.com:

  • When incoming requests match: Custom filter expression

    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  • Then:

    • Cache eligibility: Eligible for cache
    • Setting: Cache key
      • Cache by device type: On