Hi all,
I am developing a shopping cart for some configurable good (Say
configurable pc). Since it is little complex configuration, my
requirement is to make sure that if user clicks on browser back button
instead of the back button I have provided him, page should expire. And
show "this page has expired". And when user clicks refresh on that
expired page he is brought back on the page he was previously.
To achieve this, the first thing is to make sure explicitly that there
is no page cached by the browser. I have used following code in header
ftl:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-store,
no-cache, must-revalidate">
<meta http-equiv="Cache-Control" content="post-check=0,
pre-check=0, false">
also I have tried using :
UtilHttp.setResponseBrowserProxyNoCache(request,response);
in bsh files.
But still the first page loading in the browser is "disk cached". Next
pages are not cached. Consequently if I am clicking browser back on any
page, it is taking me back to the disk cached first page.
Can anybody suggest me any workaround so that not a single page is
cached and clicking on the browser back will give me
message like "This page has been expired".
Thanks in advance,
Sayoke Shome | Technical Associate | Techmahindra Ltd. | Gigaspace
gama 1 ,Vimannagar, Pune | India
============================================================================================================================
Tech Mahindra, formerly Mahindra-British Telecom.
Disclaimer:
This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may review
at <a
href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally and <a
href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a>
internally within Tech Mahindra.
============================================================================================================================