Closed hahnzilla closed 4 years ago
hmmm yeah this should be doable
Probably people will want this for GDPR reasons, too.
Yep, running into the same type of issue with Varnish caching.
@dhahn in the meantime, a quick and dirty fix would be to throw this in some module code:
Event::on(
View::class,
View::EVENT_AFTER_RENDER_PAGE_TEMPLATE,
function (TemplateEvent $event) {
header_remove('Set-Cookie');
}
);
Ummmmm…isn't your condition reversed (should lose the first !
)?
oops.
Released as 1.1.5
I noticed that a
_ia
cookie was being set on each request even though we were opting out ofautoSendPageView
. This can cause issues with cloudflare cdn page caching (which is how I found it :)). I tracked it down to this definition, but I wasn't sure what the best way to go about opting out of it was so I figured I'd start a conversation.It'd be sweet if there were just a "noGlobals" config method that was checked at the beginning. I can push up a PR if you think that's a good idea.