Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 21st, 2006, 12:55 AM
Registered User
 
Join Date: Jul 2006
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old July 21st, 2006, 01:38 PM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
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/
Reply With Quote
  #3 (permalink)  
Old July 22nd, 2006, 07:44 AM
Registered User
 
Join Date: Jul 2006
Location: , , .
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.

Reply With Quote
  #4 (permalink)  
Old July 22nd, 2006, 07:59 AM
Registered User
 
Join Date: Jul 2006
Location: , , .
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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
install tomcat 5.5.17 sabra Java Databases 0 September 30th, 2006 10:38 PM
configure tomcat to run both JDK 1.4.2 and 1.5.0 draggy Apache Tomcat 3 April 17th, 2006 05:04 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 10: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 01:31 PM
how we configure tomcat? vipul Apache Tomcat 1 February 24th, 2004 09:27 AM



All times are GMT -4. The time now is 03:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.