title: How to disable cache in tomcat 8.0.23?
body: <p>How can I disable the static-file cache in Tomcat 8.0.23?</p>
  
  <p>My <code>app.nocache.js</code> file created by GWT is being cached by Tomcat. Anytime I recompile, Tomcat is serving the old version of the file.</p>
  
  <p>I would be happy to disable Tomcat's cache for any file containing "nocache" in it's name. Fully disabling Tomcat's cache would do as well.</p>
  
  <p>I have tried:</p>
  
  <blockquote>
    <p><code>&lt;Resources
           cachingAllowed="false"
           cacheMaxSize="0"
      /&gt;</code></p>
  </blockquote>
  
  <p>in my <code>WEB-INF/context.xml</code> file, or:</p>
  
  <blockquote>
    <p><code>&lt;Context cachingAllowed="false" cacheMaxSize="0"&gt;</code></p>
  </blockquote>
  
  <p>...but neither of these attempts have succeeded in disabling the cache.</p>