Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Applets and Caching issues using URL class

Posted on 1998-07-02
4
Medium Priority
?
192 Views
Last Modified: 2012-05-04
Hello,
I am using the URL class to communicate with an ISAPI backend.  Everything works fine, except for two things:
1) In Netscape 4.0, when I make a request to the ISAPI dll
from my applet, it caches the URL that I have used to communicate with the dll!
ex:
http://www.x.com/toolserver.dll?gettext&ID=1

The first time it works fine, but from that point on, I cannot use this URL again because Netscape thinks it is a page!  How do I turn this off programmatically.  I have tried using the meta tag in the HTML that starts the applet, but it doesn't help.
2)In IE 4.0 there is no problem with caching, but the applet is 1/4 the speed.  This is NOT because of the fact that Netscape is caching because it is faster when the URL is being called the first time (hasn't cached yet in Netscape, but still faster).  How can I make it faster in EI?
Thanks,
Georg
0
Comment
Question by:georita
  • 2
4 Comments
 

Author Comment

by:georita
ID: 1224537
Edited text of question
0
 
LVL 32

Accepted Solution

by:
jhance earned 400 total points
ID: 1224538
In your URLConnection, use:

cgiConnection.setUseCaches(false);

I don't understand what you are asking in the second part.  Can you explain further?
0
 

Author Comment

by:georita
ID: 1224539
The second part is this:
My applet runs 1/4 as fast in Internet Explorer than it does in Netscape 4.0.  What can I do to resolve this, or is it just the way it is?
Thanks,
Georg
0
 
LVL 6

Expert Comment

by:gadio
ID: 1224540
georita, about your second part, I have noticed that sometimes the preformance in IE is down when you are using the IE over lan and you dont have the servers host configured. Try and configure the the c:\windows\hosts file to hold the name ip and full domain name of your servers. There should be a c:\windows\hosts.sam sample file on your system that shows you how to do that.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question