WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Rejected cookies broken? (4 posts)

  1. JarkkoL
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. JarkkoL
    Member
    Posted 1 year 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 0.9.2.4 installed and it didn't have this problem.

  3. JarkkoL
    Member
    Posted 1 year ago #

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

  4. JarkkoL
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.