QueryString

This module aims to become your Swiss Army knife to increase your hit ratio by tweaking the query string of your incoming requests. The plugin is still under development but it can already:

  • remove or clean the query string
  • filter specific query parameters based on a name list or a regexp
  • sort the query parameters

Every function comes at least with two test cases:

  • without the module to show Varnish's behavior
  • with the module to show the improvement

Functions

clean

Removes the trailing question mark in URLs with an empty query string.
Example: /path? becomes /path
The clean behavior is implied in all other functions 

remove

Removes the query string (useful for static resources).

filter

Removes query parameters based on a list of names.
Example : utm_source, utm_medium, utm_campaign... 

filtersep

Separator needed for the filter function.

regfilter

Removes query parameters based on a regular expression.
Example : utm_.*

sort

Sorts the query parameters (useful when parameters order doesn't matter).

Status: 
Used in production
Licence: 
Varnish version supported: 
Commercial support: 
No