In order to invalidate the cache, I'm encoding an url the following way:
$clean_url = base64_encode( $url );
http://url_of_the_varnish_host_to_clean/clean/url?v=$clean_url
I would like to catch this url to clean and decode it in my vcl file. I catch the request this way:
if (req.url ~ "^/clean/url?v=")
But I have no idea how to catch the parameter and decode it.