Solved

How to clear cache in browser from java applet

Posted on 1999-01-28
2
477 Views
Last Modified: 2008-03-06
Hello,
How to clear cache in browser from java applet (through coding). For example suppose i have wtitten a applet and put it into web server. Now anyone has accessed from browser. Now if i am changing something in applet code the current applet code may or may not be affected in that person's browser. beacause, browser always checks its local cache and then web server. So how i can clear browser cache buffer from applet code ?
Help me ( if possible send some source code)
Thanks...
0
Comment
Question by:vanit
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
heyhey_ earned 50 total points
ID: 1234844
you can't do this from applet.

this is browser dependant behaviour (metaknowlenge)
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1234845
you can advise your users to use shift+Reload / Ctrl+Refresh if the want to be sure that they receive the latest applet version (but this doesn't work always too)

As you know, when you click on the "reload" button in Netscape, or "refresh" button on Explorer, the browser reloads the web page (and not from the cache).
Java classes however, in the above case, ARE taken from the cache. In order to force the browser to REALLY reload the classes, you hit "SHIFT-reload" on Netscape, or "CTRL-refresh" on Explorer.
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

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:

911 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

19 Experts available now in Live!

Get 1:1 Help Now