This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Applets and the fly likes Do applets downloading every time?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Do applets downloading every time??" Watch "Do applets downloading every time??" New topic

Do applets downloading every time??

Kevin Onik
Ranch Hand

Joined: Sep 10, 2003
Posts: 30
Hi friends..
I have a good experience in Java App programming,but nothing about developping Applets!!!
I'm going mke decision about using Applets in our new J2EE project.
Can anyone please answer my question? ( I know that it may seem FUNNY!! but I coulden't find the answer!!)
Let's say I have an applet with the size of 1MB "MyApplet.class" size,when someone loads the page, contains it for the first time it's clear that the .class file must loadup, but what about the secound time?
It loads up again?? Is there any way to prevent this ( I mean from reloading the applet... for example like FLASH files??)
And if it's possible, how can I tell the browser that a new version of the Applet file is on the server?
( I have read the Tutorial at the Sun but couldn't find a help ! )
Can anyone please recommand a good book on (Just Applets)?

"The greatest pleasure in life is doing what people say you cannot do." --Walter Bagehot<p>SCJP 1.4<br />SCWCD 1.3</p>
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

The applet gets cached by the browser, just like every other thing it downloads. This can lead to problems when you are debugging locally because an old class file may persist in the cache long after you have recompiled your new code. This shouldn't be a problem when the applet is deployed on a web server because the browser uses the HTTP protocol to compare the cached version with the remote version.
If you are using the Java Plug-In, you have to take some extra steps to set up caching: Applet Caching

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Do applets downloading every time??
It's not a secret anymore!