List of WooCommerce cookies to exlude from Varnish?


#1

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


Breeze & WooCommerce Caching Issue?
#2

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

URL:

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

Cookie:

  • woocommerce_cart_hash
  • woocommerce_items_in_cart
  • wp_woocommerce_session_

#3

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

wp-resetpass-.?

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?


#4

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?


#5

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.


#6

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).


#7

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


#8

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?