
Andrew Betts
- Total activity 39
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 16
Activity overview
Latest activity by Andrew Betts-
Andrew Betts commented,
Definitely. You can do this with a little VCL, our configuration language: if (req.url == "/") { set req.url = "/feed/default"; } else if (req.url == "/news") { set req.url = "/feed/news"; }...
-
Andrew Betts commented,
Hi Mathieu, Sadly not. I'd love to say that we support dynamic regexs but unfortunately they have to be string literals. In the case of this particular pattern, you're just testing for membership...
-
Andrew Betts commented,
Hi @alex, Two ways you can do this: Set req.http.SOMETHING in recv, unset the header in miss and pass, once it has been transferred onto bereq, ie. unset bereq.http.SOMETHING, which will preserv...
-
Andrew Betts commented,
Hi Thomas. Streaming miss is enabled in the fetch stage of the VCL flow, which runs after headers have been received from the origin. By this point we've already sent the request to origin, so it...
-
Andrew Betts commented,
See also https://community.fastly.com/t/can-i-set-set-req-backend-host-dynamically/783
-
Andrew Betts commented,
To be clear here, there are two hostnames to consider. The one attached to the definition of an origin is there to allow us to resolve an IP address to which we send origin fetches. The second ho...
-
Andrew Betts commented,
You can't specify an origin dynamically, but you can have a number of origins. So if you know what all the possibilities are, set all of those up as differently-named origins, and then switch to t...
-
Andrew Betts commented,
Hi @gocoy, I've recently been working on a tool that helps our customers to try out VCL. You can see an example of what I call 'preflighting', which is sending one request and then using the resp...
-
Andrew Betts commented,
OK, there are a few things you ought to factor in to your thinking here: There's no way to read the number of currently open connections to your origin in varnish, and it wouldn't tell you much e...
-
Andrew Betts commented,
A few options here: If you would like to have / redirect to /lang/en or whatever if the user has previously visited the english version, then you can add a cookie in vcl_deliver every time you ou...