I have recorded my issue on video, please watch the attached video.
When I add a product to the cart, it is usually not added until I refresh the page. Or if I want to remove an item from the cart, the changes don’t appear until I refresh the page.
While investigating the problem, I realized something: this problem doesn’t happen in Firefox browser. The problem persists in browsers like google chrome, opera and safari.
Also, when I open the developer tools tab in google chrome, the problem is solved when I activate the “Disable cache” option in the network tab. So the problem might be cache related. But the html codes I added to the theme.liquid file to prevent caching did not work.
Thank you for your support.