This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Apache/Tomcat Expiring a page" Watch "Apache/Tomcat Expiring a page" New topic
Author

Apache/Tomcat Expiring a page

Abraham Jacob
Greenhorn

Joined: Oct 16, 2001
Posts: 25
Greetings,
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.
Thanx,
Abe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache/Tomcat Expiring a page
 
Similar Threads
How to control Caching in JBoss
Cache or Server query
Cache Control
Servlet and IE Back Button...help!!
Making a page expire