Set cookie not working in VCL
We have an application on fastly in our account. We have following in code in vcl_deliver, however on response we dont see any such header. Is it possible for anyone to see whats wrong ? I have tried to reach via support ticket but it has been very slow progress.
add resp.http.Set-Cookie = "ABtesting=A; expires=" now + 180d "; path=/;";
Thanks
-
I think your code should work, I just tested on fiddle
https://fiddle.fastlydemo.net/fiddle/74a04fdc
got below response:
Response from Fastly (headers)
HTTP/2 200 accept-ranges: bytes access-control-allow-credentials: true access-control-allow-origin: * age: 0 content-length: 0 content-type: text/html; charset=utf-8 date: Wed, 13 Mar 2019 05:24:16 GMT server: nginx set-cookie: ABtesting=A; expires=Mon, 09 Sep 2019 05:24:16 GMT; path=/; via: 1.1 varnish x-cache-hits: 0 x-cache: MISS x-served-by: cache-bwi5047-BWI x-timer: S1552454656.317835,VS0,VE112
Please sign in to leave a comment.
Comments
1 comment