title: Java Applet not caching
body: <p>I'm having a problem with a Java applet I've deployed that is refusing to be cached in the jvm's "sticky" cache (or by the browser).  For some reason every time a user loads the page this applet is on, the jvm re-downloads the jar file from the server which causes a long delay.</p>
  
  <p>The webpage containing the applet is being accessed via the internet, so according to <a href="http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html" rel="noreferrer">Sun's Java applet documentation</a> I'm using an <code>&lt;applet&gt;</code> tag rather than an <code>&lt;object&gt;</code> or <code>&lt;embed&gt;</code> tag.</p>
  
  <p>Any help debugging or identifying the problem would be much appreciated.</p>
  
  <p>Below is the full applet tag I'm using:</p>
  
  <pre><code>&lt;applet alt="Scanning Applet failed to load" archive="scanning.jar"
          code="scanning.scanlet.class" codebase="/java/" codetype="application/java"
          height="30" mayscript="True" name="scanlet" width="200"&gt;
      &lt;param name="domain" value="192.168.12.23" /&gt;
      &lt;param name="publishName" value="scan_attachment" /&gt;
      &lt;param name="publishURL" value="http://192.168.12.23/draft/update/52" /&gt;
      &lt;param name="curURL" value="http://192.168.12.23/draft/edit/52" /&gt;
  
  Your browser is unable to process the Java &amp;lt;APPLET&amp;gt; tag needed to display this applet
  &lt;br /&gt;
  One solution would be to download a better web browser like
  &lt;a href="http://www.mozilla.com/firefox"&gt;Mozilla's Firefox&lt;/a&gt;
  
  &lt;/applet&gt;
  </code></pre>