• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat doesn't respond to changes

 
John Eipe
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The page is likely cached.

See the Servlet and JSP FAQ for information on controlling caching.
 
John Eipe
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use "ctrl-F5". It refreshes the page cleaning the cache.

[=
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic