Sometimes page caching is not needed. We can prohibit browsers from caching pages.
In PHP, you can easily use the following statement to disable page caching, but it is difficult to remember and organize it for everyone’s convenience.
The php code is as follows:
This is useful for certain pages, such as order information and products under the order, and clearing the corresponding product data in the shopping cart.
You definitely don’t want the user to reach the last page, have already generated an order, and then click the browser’s return button to return to the previous page.
Then add it on the order address page:
This page is no longer cached, and there is a page that jumps to the empty shopping cart if the items in the shopping cart are empty. Then the user clicks the browser to go back, and when he comes back, he goes directly to the shopping cart page.