switch caching off globally instead of on a per connection bases.
This commit is contained in:
parent
add0189490
commit
ed19908f31
|
@ -726,6 +726,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
// calculate total size of jars to download
|
// calculate total size of jars to download
|
||||||
for (int i = 0; i < urlList.length; i++) {
|
for (int i = 0; i < urlList.length; i++) {
|
||||||
urlconnection = urlList[i].openConnection();
|
urlconnection = urlList[i].openConnection();
|
||||||
|
urlconnection.setDefaultUseCaches(false);
|
||||||
totalSizeDownload += urlconnection.getContentLength();
|
totalSizeDownload += urlconnection.getContentLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -737,7 +738,6 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
debug_sleep(2000);
|
debug_sleep(2000);
|
||||||
|
|
||||||
urlconnection = urlList[i].openConnection();
|
urlconnection = urlList[i].openConnection();
|
||||||
urlconnection.setUseCaches(false);
|
|
||||||
|
|
||||||
String currentFile = getFileName(urlList[i]);
|
String currentFile = getFileName(urlList[i]);
|
||||||
InputStream inputstream = getJarInputStream(currentFile, urlconnection);
|
InputStream inputstream = getJarInputStream(currentFile, urlconnection);
|
||||||
|
|
Loading…
Reference in New Issue