There is a setCookie when anonymous access the website for the first time.
The Case when page is not cached yet for anonymous in Varnish.
curl -SIXGET https://example.com/en HTTP/2 302 server: nginx content-type: text/html; charset=UTF-8 set-cookie: COMBIN=anonymous; path=/; domain=.example.com; HttpOnly set-cookie: COMINF=anonymous; path=/; domain=.example.com; HttpOnly set-cookie: time=1565014161; path=/ cache-control: no-cache, private location: /en
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | adv_varnish_8.x-3.0-rc1_not_set_anonymous_cookies_to_avoid_redirect_on_first_visit.patch | 1.14 KB | shumer |
| #3 | avoid_redirect_for_anonymous.patch | 844 bytes | itsekhmistro |
Comments
Comment #2
itsekhmistro commentedPatch attached.
Solution - do not set cookies for anonymous.
Comment #3
itsekhmistro commentedComment #4
itsekhmistro commentedComment #6
shumer commentedComment #7
dgupaliuk commentedHi, same issue exists for 8.x-3.x version.
Comment #8
shumer commentedPatch added.
Comment #9
shumer commentedComment #11
shumer commentedPatch applied for 8.x-3.x branch.