Java applet cached forever, not downloading new version?

后端 未结 3 2124
独厮守ぢ
独厮守ぢ 2021-02-09 17:00

We have a case where clients seem to be eternally caching versions of applets. We\'re making use of the tag correctly within o

相关标签:
3条回答
  • 2021-02-09 17:20

    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 the most recent versions of the JRE.

    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.

    0 讨论(0)
  • 2021-02-09 17:31

    As per this link , 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.

    0 讨论(0)
  • 2021-02-09 17:33

    You can remove applet from Java cache using Java Control Panel.
    For example, on Win XP

    Start -> Control Panel -> Java -> Temporary Internet Files[View]
    
    0 讨论(0)
提交回复
热议问题