Hi all, I have a requirement that if user clicks on browser back button, Page should expire. We wanted to clear page cache for this. In Ofbiz base this is done in a Class named "org.ofbiz.base.util.UtilHttp" using the method "setResponseBrowserProxyNoCache(HttpServletResponse)". This is working well. If I click on browser back, it is not fetching page from cache, instead of it is calling server. But it is not giving us any warning. Is that a bug? Shouldn't if give us warring that it us going to hit server to load the same page? I need to make sure that on a click on browser back button, I get a message that "your page has expired". Is there any workaround in Ofbiz to make sure that? Thanks and regards, | Sayoke Shome | Technical Associate | Techmahindra Ltd. | Bangalore | phone - 09886412359 | ============================================================================================================================ 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. ============================================================================================================================ |
Hello.
I'm by no means a specialist in OFBiz, but this sounds like a browser settings problem to me. I.e., I think there is no way to set http headers in such a way that the browser show the message, unless the browser is configured that way. br, -- Florin Jurcovici ------------------ What happens if you get scared half to death twice? On Tue, 05 Sep 2006 03:21:06 +0300, Sayoke Shome <[hidden email]> wrote: > > Hi all, > > I have a requirement that if user clicks on browser back button, Page > should > expire. > > We wanted to clear page cache for this. In Ofbiz base this is done in a > Class named "org.ofbiz.base.util.UtilHttp" using the method > "setResponseBrowserProxyNoCache(HttpServletResponse)". > > > This is working well. If I click on browser back, it is not fetching page > from cache, instead of it is calling server. But it is not giving us any > warning. > > Is that a bug? Shouldn't if give us warring that it us going to hit > server > to load the same page? > > > I need to make sure that on a click on browser back button, I get a > message > that "your page has expired". > > Is there any workaround in Ofbiz to make sure that? > > > > Thanks and regards, > > > | Sayoke Shome | Technical Associate | Techmahindra Ltd. | Bangalore | > phone > - 09886412359 | > > > > > ============================================================================================================================ > > 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. > > ============================================================================================================================ |
Free forum by Nabble | Edit this page |