Solved

Applets and Caching issues using URL class

Posted on 1998-07-02
4
180 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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 80
Saving Tweets with emojis using Twitter4J in a Mysql table 2 73
Java Server Faces parameter pass? 6 37
object oriented programming comparison 5 52
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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now