As I know we have to exclude the WooCommerce cookies on wp-rocket to avoid cart/checkout being cache . However, when I excluded them, I got 403 all the time.
if ($http_cookie ~* "woocommerce_items_in_cart") { return 418; }
if ($http_cookie ~* "woocommerce_cart_hash") { return 418; }
if ($http_cookie ~* "wp_woocommerce_session_") { return 418; }
As I know we have to exclude the WooCommerce cookies on wp-rocket to avoid cart/checkout being cache . However, when I excluded them, I got 403 all the time.
if ($http_cookie ~* "woocommerce_items_in_cart") { return 418; }
if ($http_cookie ~* "woocommerce_cart_hash") { return 418; }
if ($http_cookie ~* "wp_woocommerce_session_") { return 418; }