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!

JSF Caching old values on webpage.

843844Sep 28 2009 — edited Sep 28 2009
Hey Guys,

I have a jsp page that updates a profile values. This seems to work since the values change on the Oracle Database are updated.

The problem is when I view the profile the jsp shows the previous values. I hit shift refresh and the page shows the correct updated values.

This is what I have in the page header.
    <HEAD>   
	<META http-equiv="PRAGMA" content="NO-CACHE">
	<META http-equiv="CACHE-CONTROL" content="no-store,NO-CACHE,must-revalidate,post-check=0,pre-check=0,max-age=0">
	<META http-equiv="Expires" content="-1">  
I read some posts about using the phaselistener. I don't think I want all the pages to never be cached just a few that have changing data.

http://turbomanage.wordpress.com/2006/08/08/disable-browser-caching-in-jsf/

http://www.it-eye.nl/weblog/2006/11/20/adf-faces-and-cache-control/


Any ideals out there??

Thanks
Phil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2009
Added on Sep 28 2009
7 comments
356 views