Stripping out select querystring attribute/value pairs so varnish will not vary cache by them

前端 未结 7 991
名媛妹妹
名媛妹妹 2020-12-29 10:57

My goal is to \"whitelist\" certain querystring attributes and their values so varnish will not vary cache between the urls.

Example:

Url 1: http:/         


        
7条回答
  •  有刺的猬
    2020-12-29 11:26

    Have you guys given this a try? https://github.com/Dridi/libvmod-querystring

    Example
    set req.url = querystring.regfilter(req.url, "utm_.*");

提交回复
热议问题