varnish vmod_querystring

https://github.com/Dridi/libvmod-querystring

sub vcl_init {
  new qf = querystring.filter(sort = true);
  qf.add_string("page");
  qf.add_string("limit");
}

sub vcl_recv {
    set req.url = cdpj_qf.apply(req.url, mode = keep);
...

 page=2&limit=10&abcd=1234
  • > limit=10&page=2

Fastly provides a number of extensions to VCL, including several functions for query-string manipulation based on Dridi Boukelmoune's vmod-querystring for Varnish.

https://docs.fastly.com/guides/vcl/query-string-manipulation-vcl-features

fastlyはこのvmodをベースにしてvcl拡張を提供