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 Servlet Server Caching? 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 "Servlet Server Caching?" Watch "Servlet Server Caching?" New topic
Author

Servlet Server Caching?

Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
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...
Thanks!

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

Joined: Dec 14, 1998
Posts: 20496
    ∞

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Server Caching?
 
Similar Threads
How to stop caching problem in jsp
submit button only works once?
Refresh problem in applet
NX: File Synchronization #2
How do JSPs control client content caching?