Bypass Cookie Cache

Hello,

We’re currently on a Pro Plan and we’re trying to use Page Rule to bypass these cookies shown below:

woocommerce_items_in_cart
woocommerce_cart_hash
wp_woocommerce_session_0985100c1a9c5319699879f0358756d1

We’ve set it up to Cookie → Contains —> woocommerce…etc. on the page rule to Bypass Cache.
However, the problem still persists. We need help on how to fix this problem.

Hope to hear from you soon.

Kind Regards,
VSB

Page Rules with Bypass Cache on Cookie is a Business and Enterprise feature. Please see: Understanding and configuring Cloudflare Page Rules (Page Rules Tutorial) · Cloudflare Support docs

However, a similar feature is available in Cache Rules (beta) regardless of plan level. What you need to do is replace your Cache Everything Page Rule with a Cache Rule that only matches requests without the relevant cookies, then set it to “Eligible for cache”.

When incoming requests match...
Hostname equals "example.com" << your WordPress hostname AND
Cookie does not contain "my cookie prefix" AND
Cookie does not contain "another cookie prefix" AND
URI Path does not start with "/wp-" (let default cache apply to `/wp-admin`, `/wp-content`, etc.)

and other conditions as your installation may require.

Then
Eligible for cache