List of WooCommerce cookies to exlude from Varnish?


Is there a complete list of WooCommerce cookies to exclude from Varnish?

Breeze & WooCommerce Caching Issue?

Don’t quote me on this, but here is what I’ve found so far:


  • \?add-to-cart=
  • ^/(cart|my-account/*|checkout|wc-api/*|add-to-cart|addons|logout|lost-password|product/*|wp-admin|wp-login)


  • woocommerce_cart_hash
  • woocommerce_items_in_cart
  • wp_woocommerce_session_


For cookie, I just learned about this one for password reset loop


The ones you listed, should I enter them just like you have them listed?

Also, one of my URLs is: (.)/?f=(.) Does this one take care of the URLs that you listed?


Can someone share what your experience has been with Varnish and WC cookies as to what effects you saw that led you to exclude them?


Strange things happen like when a user goes to reset their password, they keep getting directed to the lost password page, and the password never gets reset.


Jon Fuller has what I have.

Issues with woo: standard install with woo and varnish active (without exclusions) no one seemed to be able to use the site to checkout. When the exclusions were added everything worked fine (just as when varnish was disabled).


Agree with Nick, you need to have the cookie exclusions for Woo to function properly.


I am not seeing what you guys are seeing. Across all browsers I checked, my customers are able to reset password/complete transaction/add to cart/use wishlist/etc.

Old version of Varnish not supporting Woocommerce’s DONOTCACHEPAGE?