• JarkkoL

    (@jarkkol)


    Hi,

    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 (0.9.2.8) 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

    https://www.ads-software.com/extend/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JarkkoL

    (@jarkkol)

    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 0.9.2.4 installed and it didn’t have this problem.

    Thread Starter JarkkoL

    (@jarkkol)

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

    Thread Starter JarkkoL

    (@jarkkol)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Rejected cookies broken?’ is closed to new replies.