Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat not showing the deployed version

 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts
I have an apache-tomcat-6.0.32 running. My problem is that when I update the JSP files or HTML files it requires quite often pushing refesh (F5) before the change can be seen.

It was not a problem for me as we where running on Tomcat 5, so assume it is an option in the new Tomcat which is causing the problem.

Thanks for all help ..
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean F5 refresh in browser? It's mostly your browser not the tomcat which isn't showing latest version. it looks like browser is displaying the cached version of the page
 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes F5 in browser. It read that Tomcat look at the page and see when are show cached-file-date<file-date. If the file date i newer then it should be the new cached-file. But this i not the the situation all the time but some times.

Was wondring if there was a way to always use the file and not the cached-file in tomcat.
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4682
332
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Tomcat forum
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anders Boje Larsen wrote:My problem is that when I update the JSP files or HTML files it requires quite often pushing refesh (F5) before the change can be seen.

Yes, that's correct. If you don't refresh the page, how is the browser supposed to know anything has changed? Just because you made a change on the server, nothing will change in the browser automatically.
 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets say I have a JSP page, that show data from a database. Then i change the data and if I refresh the site or F5 the change of data will now be showed. First if i press F5 ex. 4 times. Some time the old page show up again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic