本文介绍了在缓存Java小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java小程序中什么样的方法可用于高速缓存?

据我了解,这构成了小程序的.jar将大多数浏览器缓存。


  • 是本作的小程序?
  • 使用的任何相关的.jar文件的情况下
  • 如果在运行时从远程URL小程序加载资源,它是
    正确的假设,这将不会被浏览器高速缓存?如果它
    不是由浏览器高速缓存,人们将能够实现缓存
    以书面形式向本地存储?


解决方案

Yes, assuming that the dependent JARs are cacheable.

Probably yes. The JVM will probably connect directly to the remote server, and the browser won't see the HTTP request. In addition, the JVM will probably be unaware of the browser's cache organization or location. However, this is all platform dependent.

It is also possible that the JVM could implement its own HTTP cache. AFAIK, current generation Oracle JVMs don't, but it is not inconceivable that future ones might.

Only if the applet is signed, and the user has accepted the signature. An applet normally can't read or write local storage.

这篇关于在缓存Java小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 13:57
查看更多