I am making a online payment method, which is taking previous cart details if Full page cache is enabled. How can we make it non cache-able? I want to make my HTML content non – cache-able.
Magento 2 Cache – Disable Cache for Specific Section or Block
blockscachecheckoutfull-page-cachemagento2
Best Answer
You have to use
cacheable="false"
for your perticular section or block.ex.
You can get more info from core modules of magento.