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
|
||||
for (int i = 0; i < urlList.length; i++) {
|
||||
urlconnection = urlList[i].openConnection();
|
||||
urlconnection.setDefaultUseCaches(false);
|
||||
totalSizeDownload += urlconnection.getContentLength();
|
||||
}
|
||||
|
||||
|
@ -737,8 +738,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
debug_sleep(2000);
|
||||
|
||||
urlconnection = urlList[i].openConnection();
|
||||
urlconnection.setUseCaches(false);
|
||||
|
||||
|
||||
String currentFile = getFileName(urlList[i]);
|
||||
InputStream inputstream = getJarInputStream(currentFile, urlconnection);
|
||||
FileOutputStream fos = new FileOutputStream(path + currentFile);
|
||||
|
|
Loading…
Reference in New Issue