title: Tomcat reloads JS resources only every 10 minutes
body: <p>I am using Eclipse and Tomcat to work on a webapp. I use Eclipse to deploy my code changes automatically to Tomcat. It works well for Java classes: when I make a change to a .java file, I can see it immediately reflected on the web application, without restarting Tomcat (as long as it is running in debug mode).</p>
  
  <p>But with JS files, I have to stop Tomcat, go through "Add and remove" menu of Tomcat, remove my WAR files, click ok, add them back and click ok again and restart Tomcat to see the changes appear. A simple restart or a clean won't solve the issue. I really need to remove the projects and add them again.</p>
  
  <p>Worse is that it used to work. Do you have any idea about what could cause that?</p>
  
  <p>Here is my Tomcat config:</p>
  
  <p><img src="https://i.stack.imgur.com/CDCLT.png" alt="Tomcat configuration (updated)"></p>
  
  <p>Do you see anything wrong? Can I provide more information?</p>
  
  <p><strong>=== EDIT ===</strong></p>
  
  <p>I checked the place where Eclipse copies the resources for Tomcat, and it appears the JS file IS updated. So it means Eclipse does correctly its job of copying the resources to the destination. Tomcat is not picking the changes.</p>
  
  <p><strong>=== ANOTHER EDIT ===</strong></p>
  
  <p>There is an internal cache in our application. I deactivated it and cleared it, but it does not solve the issue. It is not likely to come from there.</p>
  
  <p>Also, since I have the issue, I have seen twice Tomcat pick up my changes, but only when I come back to the application after a long time...</p>
  
  <p><strong>=== Some new information ===</strong></p>
  
  <p>It appears that Tomcat finally picks up the changes... But only after 10 minutes.</p>
  
  <p><strong>=== This is not an Eclipse issue either ===</strong></p>
  
  <p>It is now clear this is not an Eclipse issue: I started Tomcat from the command line, using the same parameters than Eclipse.</p>
  
  <p>Here is the command line I used:</p>
  
  <pre><code>/home/antoine/opt/java/jdk1.8.0_25/bin/java -Dcatalina.base=/home/antoine/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0 -Dcatalina.home=/home/antoine/opt/java/apache-tomcat-8.0.15 -Dwtp.deploy=/home/antoine/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps -Djava.endorsed.dirs=/home/antoine/opt/java/apache-tomcat-8.0.15/endorsed -Djavax.net.ssl.trustStorePassword=somepassword -Djavax.net.ssl.trustStore=/home/antoine/opt/java/apache-tomcat-8.0.15/my.keystore -Xms512m -Xmx1024m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -classpath /home/antoine/opt/java/apache-tomcat-8.0.15/bin/bootstrap.jar:/home/antoine/opt/java/apache-tomcat-8.0.15/bin/tomcat-juli.jar:/home/antoine/opt/java/jdk1.8.0_25/lib/tools.jar org.apache.catalina.startup.Bootstrap start
  </code></pre>