cache in browser history

Hi all

Iam working on one secured web site. My site pages are caching in browser.we can see the pages view-->Explorer Bar-->History in IE. It will give all the pages we have visited.

can any one please tell me how to avoid storing these pages in browser. I already tried following code in jsp.

<%

response.setDateHeader("Expires",-1);

response.setHeader("Pragma","no-cache");

if(request.getProtocol().equals("HTTP/1.1"))

{

response.setHeader("Cache-Control","no-cache");

response.setHeader("Cache-Control","no-store");

}

%>

But it is not working.

please help me if any one knows solution.

Thanks & regards,

anand

[718 byte] By [anand_reda] at [2007-11-27 11:22:49]
# 1

Put it in the HTML head.<meta http-equiv="cache-control" content="max-age=0, must-revalidate, no-cache, no-store, private">

<meta http-equiv="expires" content="-1">

<meta http-equiv="pragma" content="no-cache">

Clear the cache before testing.

BalusCa at 2007-7-29 14:57:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for your reply ..but it is not working.

anand_reda at 2007-7-29 14:57:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Do you want to prevent caching of the pages or do you want to prevent the request being stored in the browser history?

My solution should solve the 1st issue.

The 2nd issue can only be solved by shutting down the server.

BalusCa at 2007-7-29 14:57:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Thanks for your reply.

In IE view-->Explorer bar-->History will show you all the pages that we already visited. i want my site pages should not store in this area as if any one clicks that link it will open that page.

can you please explain me in deatail caching of the pages and request being stored in the browser history .i could not get this.

I shut down weblogic server and restarted but the problem still there.

Thanks,

anand

anand_reda at 2007-7-29 14:57:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

No, shut down it permanently, so that the client cannot send requests to the server.

With other words: you haven't control over it. Why should you? If you don't want that the client saves the requests into history, then don't provide the client the possibility to send requests.

BalusCa at 2007-7-29 14:57:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...