• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet Server Caching?

 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Trailboss
Posts: 23773
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic