Set cookie not working in VCL

Comments

1 comment

  • Xun Gu

    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

     

    0
    Comment actions Permalink

Please sign in to leave a comment.