<p>We have a case where clients seem to be eternally caching versions of applets.  We're making use of the <code>&lt;param name="cache_version"&gt;</code> tag correctly within our <code>&lt;object&gt;</code> tag, or so we think.  We went from a version string of <code>7.1.0.40</code> to <code>7.1.0.42</code> and this triggered a download for only about half of our clients.</p>

<p>It doesn't seem to matter which version of the JRE the client is running.  We've seen people have this problem on 1.4, 1.5 and 1.6.</p>

<p>Does anybody have experience with explicit cache versions?  Does it work more reliably (ignoring speed) to instead rely on the <code>cache_archive</code>'s "Last-Modified" and/or "Content-Length" values (as per <a href="http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/applet_caching.html" rel="noreferrer">Sun's Site</a>)?</p>

<p>FYI, object block looks like this:</p>

<pre><code>&lt;object&gt;
  &lt;param name="ARCHIVE" value="foo.jar"&gt;
  &lt;param name="CODE" value="com.foo.class"&gt;
  &lt;param name="CODEBASE" value="."&gt;
  &lt;param name="cache_archive" value="foo.jar"&gt;
  &lt;param name="cache_version" value="7.1.0.40"&gt;
  &lt;param name="NAME" value="FooApplet"&gt;
  &lt;param name="type" value="application/x-java-applet;jpi-version=1.4.2_13"&gt;
  &lt;param name="scriptable" value="true"&gt;
  &lt;param name="progressbar" value="true"/&gt;
  &lt;param name="boxmessage" value="Loading Web Worksheet Applet..."/&gt;
&lt;/object&gt;
</code></pre>

[{'answer_id': 66942, 'author': 'MtotheThird', 'author_id': 7069, 'author_profile': 'https://Stackoverflow.com/users/7069', 'pm_score': 4, 'selected': True, 'text': '<p>Unfortunately, different versions of the Java Plug-In have different caching behaviors. Setting your Cache-Control and Last-Modified HTTP headers is the ideal solution, but it only works under <a href="http://java.sun.com/javase/6/docs/technotes/guides/deployment/enhancements.html" rel="noreferrer">the most recent versions</a> of the JRE. </p>\n\n<p>The only solution GUARANTEED to work is to rename your application jars when their versions change (we\'ve seen strange caching behavior when trying other tricks like adding query strings based on file dates). This isn\'t so difficult to do if you have a properly automated deployment system. </p>\n'}, {'answer_id': 9582242, 'author': 'Vaisakh', 'author_id': 1251978, 'author_profile': 'https://Stackoverflow.com/users/1251978', 'pm_score': 0, 'selected': False, 'text': '<p>As per <a href="http://docs.oracle.com/javase/1.3/docs/guide/misc/appletcaching.html" rel="nofollow">this link</a> \n, same jar file should not be listed int "archive" and "cache_archive" params. In that case, the JAR file is cached using the native browser cache.</p>\n'}, {'answer_id': 15113420, 'author': 'Ilya', 'author_id': 1143825, 'author_profile': 'https://Stackoverflow.com/users/1143825', 'pm_score': 2, 'selected': False, 'text': '<p>You can remove applet from Java cache using <code>Java Control Panel</code>.<br>\nFor example, on Win XP  </p>\n\n<pre><code>Start -&gt; Control Panel -&gt; Java -&gt; Temporary Internet Files[View]\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/66875', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']