Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to clear history/ temp files

 
Anil Verghese
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to clear the temporary files and the history/cookies , if yes how
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, not from the server.
The best you can do is suggest that the browser not cache your pages.
See: http://faq.javaranch.com/java/NoCacheHeaders

As for cookies.
See the API to see how to set the expiration date and to add/remove values:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/Cookie.html
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really, but when you send resources to the client, you can provide cache control settings in the header encouraging them to cache or not cache that resource.

This is not the same as clearing their cache, since you need to tell the client your cache settings at the time you send the resource, not some time afterwards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic