BZ1034588 : stale local cache file in UrlResource

This fix prevents UrlResource.getInputStream() from reading stream twice.