File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Server Caching? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Server Caching?" Watch "Servlet Server Caching?" New topic

Servlet Server Caching?

Tony Alicea

Joined: Jan 30, 2000
Posts: 3222
My startserver and stopserver work just fine (WinNT)...
My first servlet worked first time (after I included servlet.jar in the CLASSPATH)
However, I suspect the server (and not the browser) is caching the servlet and I end up stopping it and starting it (the server) just to see the new changes in the servlet.
At first I thought it was the browsers (IE & NS) but I think I may have eliminated that possibility, but what do I know, I just started writing servlets a few hours ago...
Is there a way to prevent caching by the server (if that's what it is?) Also, I saw somewhere recently that a META tag may help (at least with regular pages) with a "NO-CACHE" value or something like it...

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
paul wheaton

Joined: Dec 14, 1998
Posts: 20528

I think you need something a little more industrial strength if your goal is to elimintate caching. JRun does a nice job of recognizing servlet updates and loading the newer servlet.

permaculture Wood Burning Stoves 2.0 - 4-DVD set
It is sorta covered in the JavaRanch Style Guide.
subject: Servlet Server Caching?