Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Clearing the cache in JSF pages

843844Aug 15 2009 — edited Sep 10 2009
Hi,

I have this in my JSF page.
<head>

<%
  response.setHeader("Cache-Control", "no-cache"); // Prevents HTTP 1.1 caching.   
  response.setHeader("Pragma", "no-cache"); // Prevents HTTP 1.0 caching.   
  response.setDateHeader("Expires", -1); // Prevents proxy caching.  
%>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Application Developer">
	
</head>
Whenever, I hit on refresh button on both IE and FF browser it creates a new application ... which should not happen.
Is there anything else that Iam missing??

Please do help me.
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2009
Added on Aug 15 2009
13 comments
3,830 views