Meaningless Drivel is fun!
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
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
It's not a secret anymore!