wood burning stoves 2.0*
The moose likes Servlets and the fly likes Tomcat doesn't respond to changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat doesn Watch "Tomcat doesn New topic
Author

Tomcat doesn't respond to changes

John Eipe
Ranch Hand

Joined: May 23, 2008
Posts: 215
I have a really simple web page with few JavaScript.

I make modification to an HREF link, and then I reload it using tomcat but I still see the old link working. It's not even there in the code!
How does it happen???
I tried reinstalling the tomcat service itself but of no help.

Thanks,


www.cs-repository.info
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60991
    
  65

The page is likely cached.

See the Servlet and JSP FAQ for information on controlling caching.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
John Eipe
Ranch Hand

Joined: May 23, 2008
Posts: 215
Thanks.

It's resolved.
to prevent most modern browsers from pulling pages out of cache when the same URL is "hit " use html meta tags.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60991
    
  65

I prefer to set response headers in a filter. That keeps all that excess goop out of the pages. Why copy and past the meta tags into each and every page if you don't have to?
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You could use "ctrl-F5". It refreshes the page cleaning the cache.

[=


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat doesn't respond to changes