问题标签 [fastly-vcl]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
161 浏览

varnish - 快速从 VCL 中的 req.url.path 中提取字符串

我需要帮助从字符串req.url.path中提取值,如下所示:

需要解压c,如果有url,比如/a,应该返回''。我试过了

也尝试过替换。但它对我没有有效的工作。请帮我。