[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/cache/how-to/cache-rules/examples/query-string-sort/ [Back]  [Original]

Query String Sort Cloudflare Cache (CDN) docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /Cache / CDN
  3. /
    Cache configurationCache Rules
  4. /Examples
  5. /Query String Sort

Query String Sort

Query String Sort

Last updated Oct 13, 2025Copy as MarkdownView as MarkdownAgent setup

Create a cache rule to sort query string parameters for caching purposes, 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
      • Sort query string: On
PreviousOrigin Cache ControlNextRespect Strong ETags

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page