VCL var VMOD
Hello,
can you please clarify if we can use Var VMOD from Varnish module collection by Varnish Software https://github.com/varnish/varnish-modules
I want to have something like:
import var;
sub vcl_recv {
if (var.global_get(regsub(req.url, "\?.*$", ""))) {
set req.url = regsub(req.url, "\?.*$", "");
}
}
-
Hi Alexander,
I'm sorry we took so long to get back to you.
Fastly VCL currently supports local variables. You can read more about them in this document: https://developer.fastly.com/reference/vcl/variables/#user-defined-variables
Please let me know if there is a feature in the var VMOD module that Fastly variables do not suffice the case.
Kind regards,
ElizabethFastly Customer Support
Please sign in to leave a comment.
Comments
1 comment