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

前端 未结 7 993
名媛妹妹
名媛妹妹 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_.*");

    0 讨论(0)
提交回复
热议问题