W3 Total Cache
Rejected cookies broken? (4 posts)

  1. JarkkoL
    Posted 3 years ago #


    I use Woocommerce in my ecommerce site and have added woocommerce_items_in_cart to "rejected cookies" section in W3TC page cache settings to disable caching of pages when I have items in my shopping cart. This used to work with earlier version of W3TC, but now that I installed the latest version of W3TC ( this seems to be broken and pages are cached even though the cookie exists. As an artifact the shopping cart content changes when I switch between different pages (there's a small icon on the header of each page showing number of items in cart).

    Any idea how to fix this?

    Thanks, Jarkko


  2. JarkkoL
    Posted 3 years ago #

    Actually, this seems to be a browser cache issue. If I refresh the page, the cart is properly updated and if I disable the browser cache, I don't have this problem anymore. I previously had version installed and it didn't have this problem.

  3. JarkkoL
    Posted 3 years ago #

    Seems that when I unchecked "Set W3 Total Cache header" for HTML & XML, it fixed the issue.

  4. JarkkoL
    Posted 3 years ago #

    Spoke too soon, I'm still having the issue.

    Workaround I have now is to use "no-cache" for "Cache Control policy" of HTML & XML. Would be nice to have "rejected cookie" for this as well, so that the page would still be cached for browser if woocommerce_items_in_cart isn't set.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.