＜本文发表于: 相约加拿大:枫下论坛 www.rolia.net/f ＞
Dear Friends, I have a seemingly simple issue to consult with you.
Context: Let me say I am doing E-commerce things. I have two pages.
Page A displays un-placed order items in a shopping card and a Button
named "Place Order". Once I hit the "Place Order" button, the Http Request will be send to the server (Whatever it is). After the order is processed, server will send a response--- Page B. Now, now, the user may hit the "Back" button on the browser menu and see page A again. It is likely that the user will click the "Place Order" button in Page A again and re-place the order. This will be a big problem.
Requirement: I don't want to show the Page A again after the order has been placed. Idealy, as the user clicks the "back" button on the menubar of the browser, I should pull a new page (But with the same URI as page A) that tells the user "You have no items in your shopping cart" or "There is no item in your shopping cart".
Analysis: This is completely a client-side problem. There is no thing to do with server-side. In priniclple, it should be resolved using Client-side Script. However, VB script should be excluded because or corporate politics.
State of Issue: I have already tried to seek advice from the people around me. But I have not yet seen the solution. At the very beginning,
my manager advocated that the issue was a piece of cake. He suggested solving the problem by using META tag in the header of Page A . It turned out to be a No-Go. Indeed, people can set Expires and
Cache-Control (or Pragma) in the META tags, but they are meaningful ONLY for the proxy server. My issue has nothing to do with the proxy, because what the user sees second time is a cache in the Browser,
not in the proxy. In other words, as the user hits the "back" button, the browser does not send any request to the server (via the proxy).
Actually, what I need is NOT using the cache in the browser, I hope to send a request to server so as to refresh the page.
Thanks: For your advice.＜本文发表于: 相约加拿大:枫下论坛 www.rolia.net/f ＞