File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes how to clear user cache? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to clear user cache?" Watch "how to clear user cache?" New topic

how to clear user cache?

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
I use servlet to send input from jsp to my java program. Later, java program will creat a wav file as the ouput. i will embed the wav file in html page. the problem is, when i want to key in new input, it will go through the same process but when i want to play the wav file, i will listen to the previous wav file even in server the wav file have been overwrite with new wav output. When i clear user cache before key in new input, I will get the latest output. Is there anyway for the servlet to clear user cache before send new input to java application?
Joe Sondow
Ranch Hand

Joined: Apr 10, 2005
Posts: 195
I don't think there's any way to clear a client's cache. I would recommend finding a way to ensure that the cached version is not used, such as using a different filename for the wav file each time it is downloaded.

SCJA 1.0 (98%), SCJP 1.4 (98%)
I agree. Here's the link:
subject: how to clear user cache?
It's not a secret anymore!