To keep track of cart data, WooCommerce makes use of 3 cookies:

  • woocommerce_cart_hash
  • woocommerce_items_in_cart
  • wp_woocommerce_session_

The first two cookies contain information about the cart as a whole and helps WooCommerce know when the cart data changes. The final cookie (wp_woocommerce_session_) contains a unique code for each customer so that it knows where to find the cart data in the database for each customer. No personal information is stored within these cookies.

So, when enable varnish, please exclude WooCommerce these 3 cookies for Varnish.

0 Likes
13 Views

You may also like

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter message.