Hi,
I have a page where i can increase/decrease the order count.
The order count altering is handled by teaCommerceEvents.js
and i can see the price is also adjusting precisely (updated with ajax in afterCartUpdated).
But when i click forward to next page and then i clicked back button of browser and reached the former page, Then the price data's were wrong.
I confirmed that these prices were the same as when the page was loaded initially.
Is there any option to update these values when browser back button is clicked.?
Have you set the cache control settings on your pages. If your content is dynamic and can be changed you need to tell the browser it's lifetime is a single load.
Old values is displayed when clicked browser back button
Hi,
I have a page where i can increase/decrease the order count. The order count altering is handled by teaCommerceEvents.js and i can see the price is also adjusting precisely (updated with ajax in afterCartUpdated).
But when i click forward to next page and then i clicked back button of browser and reached the former page, Then the price data's were wrong. I confirmed that these prices were the same as when the page was loaded initially.
Is there any option to update these values when browser back button is clicked.?
Regards
-Arun
As i didn't get any other options i have given code in document.ready section in js to update each values.
-Arun
Have you set the cache control settings on your pages. If your content is dynamic and can be changed you need to tell the browser it's lifetime is a single load.
See the answer from "Marlon" here: https://stackoverflow.com/questions/43043113/how-to-force-reloading-a-page-when-using-browser-back-button
is working on a reply...