Article View: borland.public.jbuilder.java.language
Article #16949differing results with getLastModified()
From: Rich Downing
Date: Wed, 06 Jan 1999 00:00
Date: Wed, 06 Jan 1999 00:00
40 lines
1776 bytes
1776 bytes
I posted the following to comp.lang.java.programmer but didn't get a response, so I thought I'd give it a try here. I have an applet which downloads images from the web. However, I only want to download the image if it has changed. I am using: . . . URLConnection con = Url.openConnection(); con.setUseCaches(false); lCurrentModified = con.getLastModified(); etc. . . I notice that in Netscape this causes about 300 bytes to be transferred, which is about what I would expect. (The image size is appx 35k). However, in both Internet Explorer (V 4) and using Opera with the Java 1.1.6 plugin between 17k and 18k is transferred. That seems to be what the compressed image size might be. Can it be that both these browsers are downloading the entire image when I am just requesting the time stamp? This is beating my bandwidth to death. Anyone have any ideas????? Rich ---------------------------------------------------------------------- Richard V. Downing Home: http://rvd.home.mindspring.com Senior Software Engineer Work: http://www.vsin.com VideoConferencing Systems, Inc. Email: rvd@mindspring.com Norcross, Ga ------------ When surrounded by wolves 'tis best to howl -------------
Technical Details
Message-ID:
<369376aa.1558964@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,cbd8498c40543e4a,start X-Google-Attributes: gidf74b3,public From: rvd@mindspring.com (Rich Downing) Subject: differing results with getLastModified() Date: 1999/01/06 Message-ID: <369376aa.1558964@forums.borland.com> X-Deja-AN: 429433078 Content-Transfer-Encoding: 7bit Organization: mindspring.com Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language