🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18005

Re: Cache problem

#18005
From: sposato
Date: Sun, 30 Aug 1998 00:00
42 lines
1942 bytes
For anyone else out there having this trouble, if you don't use getImage() to
drag in the image, it won't show up in the Java Console image cache.  Use the
following to bypass getImage:

  ... create the URL you need to open (oURL below...)

  Toolkit oTK = Toolkit.getDefaultToolkit
  oImage = oTK.createImage((ImageProducer) oURL.getContent());

This works with 4.06 of Netscape, however, it does not work with 4.5 preview.


In article <6s6ofs$rmp10@forums.borland.com>,
  "Jim" <jim@kwaninteractive.com> wrote:
> Is there ANY way to keep images that are downloaded from being loaded in the
> browser cache? I have tried the following:
>
> // browser side
>
>  <META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
>  <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
>  <META CACHE-CONTROL="no-cache">
>
> // java side
>
>   flush();
>   setUseCaches(false);
>   setUseDefaultCache(false);
>
> No matter what I have tried, I can still see the images caching in the java
> console using the d switch.  The applet is running on Netscape 4.06 and was
> created with JBuilder2 with the latest patch.
>
> Any help will would be greatly appreciated.
>
> Jim Sposato
> Diverse Technologies, Inc.
>
>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
Technical Details
Message-ID: <6scl4p$dvq$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6s6ofs$rmp10@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e94795fbe054e456
X-Google-Attributes: gidf74b3,public
From: sposato@my-dejanews.com
Subject: Re: Cache problem
Date: 1998/08/30
Message-ID: <6scl4p$dvq$1@nnrp1.dejanews.com>
X-Deja-AN: 386243071
References: <6s6ofs$rmp10@forums.borland.com>
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Sun Aug 30 22:53:14 1998 GMT
Newsgroups: borland.public.jbuilder.java.language
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)