<div dir="ltr">Hello,<div><br></div><div>I'm currently working on forcing cached results using vsthrottle vs dropping requests, but for some reason (I probably did it wrong :) I can't get var.get/var.set_duration to work. The vcl_recv snippet is as follows, any input is greatly appreciated:</div><div><br></div><div><div>sub vcl_recv {</div><div>        if (vsthrottle.is_denied(req.http.Host, 500, 5s) || (var.get("block-" + req.http.Host))) {<br></div><div>                # The vsthrottle rate limit definitely triggers - confirmed later with "Attack" header</div><div>                unset req.http.Cookie;</div><div>                unset req.http.User-Agent;</div><div>                unset req.http.Pragma;</div><div>                unset req.http.Cache-Control;</div><div>                set req.http.Attack = "ByHost: " + req.http.Host;</div><div>                set req.ttl = 15m;</div><div>                var.set_duration("block-" + req.http.Host,15m);</div><div>                return (hash);</div><div>        }</div><div>[..]<br></div><div>}</div></div></div>