sorry, bad copy/paste job, the "response()" should be "response".

Thanks
Brian Glas

Brian Glas wrote:

A co-worker of mine was able to get this to work by placing the following code in the top of the layouts:

<%
//Prevents the back button from showing the portal page in cache
response().setHeader("Cache-Control","no-store"); //HTTP 1.1
response().setHeader("Pragma","no-cache"); //HTTP 1.0
response().setDateHeader ("Expires", -1); //prevents caching at the proxy server
%>


This works for us in NS 4.7X, NS 7.1, IE 5.X, IE 6.X

Thanks
Brian

Nikolaos Athanasis wrote:

Hello!


Is it possible that when the user clicks on the BACK button of my Jetspeed application, the output is not get by the cache, but is dynamically served?

In other words: Every time the user clicks on the back button, I want
that jetspeed 'reloads' this back page.

I put a:

<%
response.setDateHeader ("Expires", 0);
response.setHeader ("Pragma", "no-cache");
if (request.getProtocol().equals ("HTTP/1.1")) {
response.setHeader ("Cache-Control", "no-cache");
}
%>


at the top and at the bottom of each jsp template for every portlet that is shown in my application. But is did not work.



Does onyone have any idea, please?

Thanks in advance,
Nik...




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to