• When using the egde browser the woocommerce cart will be cached and therefore not updated properly if product are removed or added. This happens only in the edge browser and only if browser caching is enabled. How can this be fixed?

    Thanks for any help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor gidomanders

    (@gidomanders)

    Thread Starter gianni333

    (@gianni333)

    Thanks for the answer. This might be the reason for the issue, but it sounds like they didn’t solve it so far.

    Is there any solution from the w3 total cache side? I’ve just checked out some random other webshops in edge and their cart seem to work well, so there must be some kind of solution I guess?

    Plugin Contributor gidomanders

    (@gidomanders)

    Your cart is using AJAX to list the items right? Then maybe you’re using cache REST API too, causing trouble in Edge?

    Thread Starter gianni333

    (@gianni333)

    Cache Rest API was set to “Dont’ Cache”. I tried to disable it, purged the cache and also cleared the browser cache in edge, but unfortunately no success, they issue is still there.

    Plugin Contributor gidomanders

    (@gidomanders)

    Could you make sure your cart is controlled by JavaScript using AJAX calls? Also check this guide what settings to use with WooCommerce:
    https://docs.woocommerce.com/document/configuring-caching-plugins/

    Thread Starter gianni333

    (@gianni333)

    The ajax is cart enabled in the woocommerce settings. I also checked the link you posted and I already made all the settings they suggest. The problem happens in the edge broswer only, everywhere else the cart works just fine.

    Plugin Contributor gidomanders

    (@gidomanders)

    I’m sorry but the only solution I have so far is to do what is stated in the issue on the microsoft forum, adding Pragma header to your htaccess file:

    
    <FilesMatch "\.(html|htm|js|css)$">
      <IfModule mod_headers.c>
         Header set Pragma "no-cache"
      </IfModule>
    </FilesMatch>
    
    Thread Starter gianni333

    (@gianni333)

    Thanks, I’ll try this. Is there a specific place in the htaccess where I need to add this code or does it not matter where?

    Plugin Contributor gidomanders

    (@gidomanders)

    You should add it after the browser cache block, but before page cache. Otherwise it won’t work.

    Thread Starter gianni333

    (@gianni333)

    I’ve added it, purged the cache from W3 Total Cache and deleted the browser cache from microsoft edge, but it still doesn’t seem to work. Does it take some time to take effect or should it work immediately?

    The new hstaccess file part now looks like this:


    # END W3TC Browser Cache
    <FilesMatch “\.(html|htm|js|css)$”>
    <IfModule mod_headers.c>
    Header set Pragma “no-cache”
    </IfModule>
    </FilesMatch>
    # BEGIN W3TC Page Cache core

    Plugin Contributor gidomanders

    (@gidomanders)

    I think it should work immediately. I’ll discuss this issue with the team to see if anyone knows a solution.

    Thread Starter gianni333

    (@gianni333)

    Ok hope there is a solution. Anyway thank you very much for the fast support even during the weekend. Much appreciated:)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘issue with w3 total cache browser cache in edge browser’ is closed to new replies.