deleting temporary internet files

A

ammalu

i want some example program(code) regarding how to delete temporary
internet files by using java are jsp are java script.can u plse help me
 
E

Erwin Moller

ammalu schreef:
i want some example program(code) regarding how to delete temporary
internet files by using java are jsp are java script.can u plse help me

You cannot delete temp internetfiles. They are part of the caching
mechanism of the browser. If you could do that directly, you have a
broken browser.

You can however suggest to the browser to NOT chace them by sending the
right headers, like expires.
Google around for them.
Beware of the multiple bugs, especially in IE.

Regards,
Erwin Moller


--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
 
S

Stevo

ammalu said:
i want some example program(code) regarding how to delete temporary
internet files by using java are jsp are java script.can u plse help me

Try giving more information as to why you'd want to do that and you
might get a better answer than the two you already got which correctly
told you that you can't.

You can control the cachability of the files as Erwin said, but you can
also add to that yourself in javascript. For example, if you wanted to
load an image call foo.gif into image object foo, and make sure it's
reloaded every time, you can add a random query string like this:

var foo=new Image();
foo.src="http://example.com/foo.gif?"+Math.random()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top