• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Servlet getting cached

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have an applet that invokes a servlet and send its a parameter 'EmpId'
http://host/MyServlet?EmpId=123.
This servlet gets called several times in my application with different values for EmpId. However i notice that the servlet doesnt get called sometimes. Is there a possibility that My servlet is getting cached ??
If so how can i overcome this??.

Regards,
Sajee
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is quite possible that a proxy server somewhere caches the output of your servlet and returns that instead of calling the servlet when the same servlet with the same parameters is called again.

There's very little that can be done about it. Setting no-cache or expiration request headers and/or meta tags can sometimes help but some proxies simply ignore those.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic