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

Comments

itsekhmistro created an issue. See original summary.

itsekhmistro’s picture

StatusFileSize
new845 bytes

Patch attached.

Solution - do not set cookies for anonymous.

itsekhmistro’s picture

StatusFileSize
new844 bytes
itsekhmistro’s picture

Status: Active » Needs review

  • shumer committed b2fed92 on 8.x-2.x authored by itsekhmistro
    Issue #3072725 by itsekhmistro: Avoid redirect for anonymous on first...
shumer’s picture

Status: Needs review » Fixed
dgupaliuk’s picture

Status: Fixed » Active

Hi, same issue exists for 8.x-3.x version.

shumer’s picture

Patch added.

shumer’s picture

Status: Fixed » Needs review

  • shumer committed c720307 on 8.x-3.x authored by dgupaliuk
    Issue #3072725 by itsekhmistro, shumer, dgupaliuk: Avoid redirect for...
shumer’s picture

Status: Needs review » Fixed

Patch applied for 8.x-3.x branch.

  • shumer committed 46aa898 on 8.x-3.x authored by dgupaliuk
    Issue #3072725 by dgupaliuk: Cache disabled for ESI callbacks.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.