I have serious problems with custom Magento 2 theme and (probably) formkey cashing. I have 2 views of exactly same e-shop.
If cache is enabled and flushed everything -> adding/deleting from car works properly. After several minutes specified actions in View 2 (Custom theme) returns
302 status code and Magento redirects user to /cart page.
Now i discovered 3 ways how to "fix" this issue.
- Flush cache - only temporary solution for few minutes.
- Delete formKey validation from Magento core - totally inappropriate.
- Disable cache - affects performance.
I'm struggling with this problem couple of days and I will be glad for any advice.