What is Query String Sort? [Enterprise only]

What is Query String Sort?

Today, Cloudflare treats URLs with query strings that are in different orders as separate files in the cache. This mean that if one user requests:

/video/48088296?title=0&byline=0&portrait=0&color=51a516

And another user requests:

/video/48088296?byline=0&color=51a516&portrait=0&title=0

We will go back to the origin, even though we have the file in our cache.

Query String Sort will sort the query strings before they hit our cache resulting in a higher cache hit rate.

How do I turn on Query String Sort?

Query String Sort is available in the Cloudflare dashboard under the Caching app.

How does Query String Sort handle parameters of the same name?

In the case of two query strings of the same name, for example:

/example/file?word=alpha&word=beta

/example/file?word=beta&word=alpha

The URL is sorted by the parameter value. In this case, to:

/example/file?word=alpha&word=beta

Who is Query String Sort available for?

Query String Sort is available for all Enterprise customers. To upgrade to Enterprise, contact the Cloudflare team.

Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk