This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Apache/Tomcat Expiring a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Apache/Tomcat Expiring a page" Watch "Apache/Tomcat Expiring a page" New topic

Apache/Tomcat Expiring a page

Abraham Jacob

Joined: Oct 16, 2001
Posts: 25
I need to expire a page after use. Hence I coded this in JSP
response.setDateHeader ("Expires", 0);
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
This works just fine when I run it from my IDE, which is JDeveloper 3.2.3.
I then transfered it to my Apache/Tomcat server. When I run it from the server the page expiring does not work.
Oh! by the way I am using IE 5.5
Could some one please enlighten me as to what I am missing... for the apache/tomcat configration.
I agree. Here's the link:
subject: Apache/Tomcat Expiring a page