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?
Your cart is using AJAX to list the items right? Then maybe you’re using cache REST API too, causing trouble in Edge?
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.
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/
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.
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>
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?
You should add it after the browser cache block, but before page cache. Otherwise it won’t work.
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
…
I think it should work immediately. I’ll discuss this issue with the team to see if anyone knows a solution.
Ok hope there is a solution. Anyway thank you very much for the fast support even during the weekend. Much appreciated:)