Hello,
I looking for a way to force the clients browser to refresh a site when the user is hitting the back button.
Example:
User visits page A and goes from there to page B.
Then he is hiting the "back"-Button. Now the browser should not use the page A from cache but load a new page A from the server.
I tried:
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Expires" content="-1">
- <META http-equiv="Cache-Control" content="no-cache">
- <META http-equiv="Pragma" content="no-cache">
- <META http-equiv="Expires" content="-1">
This works on Netscape but not on IE.
The method I need should work on standard html-pages.
The methos should not use perl or asp.
php is possible.
It should work with sessions.
If possible it should be possible to put the necessary code into the <head> or the <body> of the document.
maybe I specify my problem a bit:
I am running an online shop.
A summary of theshopping cart is shown permanently on each site of my shop.
If somebody adds something to the shopping cart the shopping cart automacally refreshes and shows a new summary of the shopping cart.
If now somebody pushes the back-button in his browser he returns to the last site visited (loaded from his cache) and sees the old version of the shopping-cart summary.
I expect that this can be very disturbing for some visitors.
One specific example:
Somebody visits my site.
He goes to a category of my portfolio.
From this overview he goes to the details of one product. There he adds this product to his shopping cart. The shopping-card summary reloads. so far everything is ok. But now if the user uses the back button to go back to the overview of porducts this overview is reloaded from his cache and with this also the old shopping cart sumary is displayed.....this can be VERY confusing for the customers!
I hope someone of you can help me!
....and sorry for my bad english, it turns rusty since I don't use it so much anymore....
Thank you in advance,
Torsten