Skip to content

Commit bee7993

Browse files
wiewiurdpMateuszKolankowski
andauthored
IBX-11786: Kept Raptor Smart Advisor anonymous visitor identifier in Varnish configuration. (#81)
* Keep Raptor Smart Advisor anonymous visitor identifier in Varnish configuration. * Keep Raptor anonymous visitor identifier cookie in Varnish configuration for CDP segmentation. --------- Co-authored-by: MateuszKolankowski <wiewiurdp@tlen. pl>
1 parent 14d3243 commit bee7993

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/varnish/vcl/varnish5.vcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ sub vcl_recv {
5353
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
5454
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
5555
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa[-_][^=]*)=", "; \1=");
56+
// Keep the Raptor anonymous visitor identifier cookie so CDP segmentation can resolve visitor segments.
57+
set req.http.cookie = regsuball(req.http.cookie, ";(rsa)=", "; \1=");
5658
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
5759
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");
5860

docs/varnish/vcl/varnish6.vcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ sub vcl_recv {
5353
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
5454
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
5555
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa[-_][^=]*)=", "; \1=");
56+
// Keep the Raptor anonymous visitor identifier cookie so CDP segmentation can resolve visitor segments.
57+
set req.http.cookie = regsuball(req.http.cookie, ";(rsa)=", "; \1=");
5658
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
5759
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");
5860

docs/varnish/vcl/varnish7.vcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ sub vcl_recv {
5151
set req.http.cookie = regsuball(req.http.cookie, "; +", ";");
5252
set req.http.cookie = regsuball(req.http.cookie, ";(IBX_SESSION_ID[^=]*)=", "; \1=");
5353
set req.http.cookie = regsuball(req.http.cookie, ";(ibexa[-_][^=]*)=", "; \1=");
54+
// Keep the Raptor anonymous visitor identifier cookie so CDP segmentation can resolve visitor segments.
55+
set req.http.cookie = regsuball(req.http.cookie, ";(rsa)=", "; \1=");
5456
set req.http.cookie = regsuball(req.http.cookie, ";[^ ][^;]*", "");
5557
set req.http.cookie = regsuball(req.http.cookie, "^[; ]+|[; ]+$", "");
5658

0 commit comments

Comments
 (0)