Force reload client side code on server startup
===

I am building an intranet application with GWT, gilead and Hibernate, and Tomcat.

As I am actively calibrating the application based on the users' feedback, I have to put on changes and restart tomcat quite often. I was wondering how I can seemlessly make these changes available to the client side. (For the moment I always ask them to refresh after I restart tomcat).

Since the application is client-side (js) based, the client has the application code. Imagine the scenario where he has the application open, and I upload a new version and restart. After the restart, the user can perfectly go on using the application as he has the page open, but he is executing the old code. How can I make the client aware of the new code? I guess just invalidating the session and redirecting the user to the login page won't do that, as the js code won't be refreshed.

Any ideas?