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!

jsp caching

843840Jun 25 2008 — edited Jun 26 2008
Hiya, hopefully someone will be able to help me with this.

first off how do i remove caching from jboss/tomcat? i have tried

response.setHeader("Pragma", "no-cache");
response.setHeader("Pragma", "no-store");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader ("Expires", 0);

on the jsp pages but the pages are still being cache.. neither am i using a proxy
Is there any configuaration somewhere to stop all caching?


secondly, if i use a iframe to call to its parent frame, it gives me an http 404 error when trying to load the iframe. seem like the resource is still not released.
i have tried

<iframe src="deleteEmailIF.jsp?nocache='<% out.println(System.currentTimeMillis());%>'" name..............

hopefully to load the iframe fresh but it doensn't seem to work.. is there anyway to force it to reload a fresh page everytime its called? or to delete the callign iframe?
maybe i should have used <div> but a solution here would be greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Jun 25 2008
4 comments
134 views