Skip to main content

Bypass Cache for Cookies

Updated this week

FlyingPress allows you to skip cache when specific cookies are present in the request. This is useful when the content shown to the user depends on those cookies.

How it works

When a request contains a matching cookie:

  • The page is not served from cache

  • WordPress processes the request normally

  • No optimization or static HTML is applied

When to use it

Use this when certain cookies affect what the user sees, such as:

  • Cart or checkout behavior (e.g. woocommerce_items_in_cart)

  • Language or currency selectors

  • Personalization or targeting cookies

Example

To bypass cache for users who have items in their WooCommerce cart, add:

woocommerce_items_in_cart

FlyingPress will then bypass cache for any request with this cookie.

Notes

  • You can add multiple cookies—one per line

  • The check matches cookie names, not values

Did this answer your question?