Update `StaticResourceJars` so that jars obtained via a `JarURLConnection` are only closed when caches are not being used. Fixes gh-38766
Update `StaticResourceJars` so that jars obtained via a `JarURLConnection` are only closed when caches are not being used. Fixes gh-38766