Dear Support,
I am contacting you after having discussed already with Woocommerce and SGOptimizer support team.
Since a while my website product pages cannot be cached. This is due to the fact that the caching engine cannot be trigger is there are cookies in the header.
Apparently cookies are added to the header by Woocommerce, function woocommerce_recently_viewed. This function adds cookies to the header only when the widget “recently viewed products” is active. However, on my website this widget is not active, never was and I do no plan to activate it.
Still, cookies are added to the header. Woocommerce states that most probably my theme does it behind the scene.
Could you please help me to deactivate this function if triggered by the theme? alternatively could you please give me a code that i could add to functions.php, in order to stop the function to pass cookies to the header?
Thanks in advance.
F.