Java applet cached forever, not downloading new version?

后端 未结 3 2174
独厮守ぢ
独厮守ぢ 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.

提交回复
热议问题