Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Disabling servlet caching 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 "Disabling servlet caching" Watch "Disabling servlet caching" New topic
Author

Disabling servlet caching

Ankit Gandhi
Greenhorn

Joined: Nov 03, 2006
Posts: 27
Hi,

We are facing a very typical problem using WebSphere server. The feature of Servlet Caching is enabled on the server side.

How do I disable the same using some code? For running a particular servlet, I want that caching should not come in picture. And everytime the servlet should run.

Any pointers would be helpful.

Thanks,
ankit
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Are you refering to the servlet instance or the output of the servlet?
Ankit Gandhi
Greenhorn

Joined: Nov 03, 2006
Posts: 27
The output of the servlet
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you sure it's the server caching and not the browser?

Our JSP FAQ has an entry on caching.
I has the necessary meta tags to add to your pages to prevent browser caching.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: Disabling servlet caching