Page 1 of 1

The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Feb 14, 2019 2:39 am
by wktp76
The cart is not updated if you click the "Back" button in the browser!

Выбираем товар, кладем его в корзину, в корзине товар появляется! http://joxi.ru/D2PJQn5tqdGOWr
Но стоит вернутся на шаг назад корзина в header пуста! http://joxi.ru/p27K7YQCK0yBo2
Если вернуться на шаг вперед, корзина пуста! http://joxi.ru/MAjQl54hjv0582

Если нажать обновить (F5) козина обновляется! http://joxi.ru/EA4WvYPCoDgW52

Choose a product, put it in the cart, the product appears in the cart! http://joxi.ru/D2PJQn5tqdGOWr
But it is worth going back a step back to the cart in the header post! http://joxi.ru/p27K7YQCK0yBo2
If you go back one step, the cart is empty! http://joxi.ru/MAjQl54hjv0582

If you click update (F5) the cart is updated! http://joxi.ru/EA4WvYPCoDgW52

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Feb 14, 2019 10:20 am
by straightlight
The back button should never be used since the enforcement of SSL throughout a store as it may have its flaw to update the content without refreshing the page.

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Feb 14, 2019 2:03 pm
by wktp76
SSL?

I do not use SSL, in version 2.3.0.2 cart is updated!

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Feb 14, 2019 10:47 pm
by straightlight
If you don't use SSL, then it is not a bug. SSL is required nowadays for your website to show up on Google's search engine. As for updating, ensure your .htaccess file is properly configured and that no extensions were installed while upgrading from OC v2.3.0.2 to OC v3.x releases.

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Fri Feb 15, 2019 6:41 pm
by wktp76
I have a clean Opencart 3.0.2.0 installed! No add-ons .htaccess has not changed!
In Opencart version 2.3.0.2 there is no such problem, with or without SSL!

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Fri Feb 15, 2019 10:48 pm
by straightlight

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Sat Feb 16, 2019 10:45 pm
by wktp76
It became even more unclear!
Thank you!

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Sat Feb 16, 2019 10:53 pm
by straightlight
If you don't know how to resolved cache issues, you can always create a new Service Request in the Commercial Support section of the forum to get this done as a custom job.

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Mon Feb 18, 2019 2:07 pm
by wktp76
I did everything as you said, it did not solve the problem, when you go to the browser "Back" cart is not updated!(

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Wed Mar 06, 2019 7:24 pm
by letxobnav
On a back-button an SSL page is reloaded even if it is marked as a "no-cache" page.
A "no-cache" page is NOT reloaded for NON-SSL connections.
To reload a non-SSL page it should be marked as "no-store", "no-cache" does not work.

In short, sound like normal behavior, suggest you use SSL.

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Wed Mar 06, 2019 10:28 pm
by wktp76
We use SSL!
Still does not work with SSL and without SSL!

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Mar 07, 2019 12:16 am
by letxobnav
you said you did not 7 posts ago:
I do not use SSL, in version 2.3.0.2 cart is updated!

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Mar 07, 2019 1:26 am
by ADD Creative
Could be an effect of lack of cache control header in version 3. https://github.com/opencart/opencart/issues/7008

Try the changes here to see if it makes any difference.
viewtopic.php?f=201&t=207498#p737430

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Thu Mar 07, 2019 10:53 pm
by wktp76
letxobnav wrote:
Thu Mar 07, 2019 12:16 am
you said you did not 7 posts ago:
I do not use SSL, in version 2.3.0.2 cart is updated!
Decided to install SSL!

Re: The cart is not updated if you click the "Back" button in the browser!

Posted: Wed Mar 13, 2019 2:16 pm
by wktp76
ADD Creative wrote:
Thu Mar 07, 2019 1:26 am
Could be an effect of lack of cache control header in version 3. https://github.com/opencart/opencart/issues/7008

Try the changes here to see if it makes any difference.
viewtopic.php?f=201&t=207498#p737430
Thank you, it works!