< prev index next >
src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java
Print this page
@@ -80,10 +80,13 @@
throws MalformedURLException, IOException {
super(url);
jarFileURL = getJarFileURL();
jarFileURLConnection = jarFileURL.openConnection();
+ // whether, or not, the embedded URL should use the cache will depend
+ // on this instance's cache value
+ jarFileURLConnection.setUseCaches(useCaches);
entryName = getEntryName();
}
public JarFile getJarFile() throws IOException {
connect();
< prev index next >