I am working on magento-2.
After added the products into cart, minicart is not showing any products even if the added product exists in the checkout/cart page.
After long refresh, this minicart works.l haven't change the phtml file of the minicart.
Best Answer
Quick way:
It is a known bug. Turn on your FULL PAGE CACHE to make it work properly.
Possible fix:
There is a temporary fix you can apply:
vendor\magento\module-catalog\view\frontend\templates\product\view\addtocart.phtml
You simply need to change:
to:
Source: https://github.com/magento/magento2/issues/5377 . It worked for me.