Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2006, 11:55 PM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Configure Tomcat 5.5.17

Hi guys,

   I m wondering is it possible to clear or stop caching in Apache Tomcat web server? For example, Reload or Refreshing page is not allowed. Another example is like www.maybank2u.com.my, after performing some transactions, Back or Refreshing is not allowed.

   Thanks

 
Old July 21st, 2006, 12:38 PM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's two levels of caching that you could be talking about: browser caching and HTTP server caching. Browser caching happens on the client side. HTTP server caching caches responses loaded from disk or from an application server so they can be served again directly from memory for performance. I assume you mean browser caching.

Browser caching is controlled by the HTTP Expires and Cache-Control response headers. You can specify these directly in your application's responses, or alternatively you can use the Apache mod_expires plugin to handle them automatically based on file type. Here's the documentation for mod_expires:

http://httpd.apache.org/docs/2.0/mod/mod_expires.html

Here's a great article on the background behind browser caching and how to configure mod_expires:

http://www.metaskills.net/blog/heuri...che-2#goodpart

Good luck!

Jon Emerson
http://blogs.adobe.com/jon.emerson/
 
Old July 22nd, 2006, 06:44 AM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

   Thanks for the information. I will go through the links that u provided and get back to u if I have extra question.

 
Old July 22nd, 2006, 06:59 AM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

   I have gone through the links, can u provide me information on how to configure Tomcat 5.5.17 to stop browser caching? Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
install tomcat 5.5.17 sabra Java Databases 0 September 30th, 2006 09:38 PM
configure tomcat to run both JDK 1.4.2 and 1.5.0 draggy Apache Tomcat 3 April 17th, 2006 04:04 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Chapter 16 & 17: Configure MSDE/ASP.NET 1.1 danascmitz BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 May 11th, 2004 12:31 PM
how we configure tomcat? vipul Apache Tomcat 1 February 24th, 2004 09:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.