【发布时间】:2012-11-21 23:41:43
【问题描述】:
我有这个网址:
http://my.api.com/v1/{api_key}/{user_token}/?someparam=hello&force=true&someotherparam=world
其中api_key 和user_token 是uuid
如何提取force 查询参数的值,如果缺少强制参数或将其设置为假,则从清漆缓存中进行查找。如果它设置为 true,我需要访问我的后端服务器。查询参数可以是任意顺序。
【问题讨论】:
标签: regex caching varnish query-parameters