Hello,
Why do you add that code if you just need to exclude cookies in the WPRocket settings https://prnt.sc/1ifnatj
Regards