I would like to avoid cache on same page depending of a cookie value (my user have profile with an URL like /firstname-lastname and can visit profile of other users).
In my cookies I store the "firstname-lastname" value, and try to make a test on it. So I have made this :
set req.http.X-SLUG = regsub(req.http.cookie, ".*user_slug=([^;]+);.*", "\1");
if (req.url ~ "^/" + req.http.X-SLUG) {
And here the compilation error :
Expected ')' got '+' (program line 73), at ('conf.vcl' Line 50 Pos 28)
if (req.url ~ "^/" + req.http.X-SLUG) {
---------------------------#-------------------
Do you knon how to do this?
Thanks