• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Caching in Applet

 
vinaya kumar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i stop caching of a file in server?
i.e when i ever load the file on client side.
it should always load the latest file...
On the Html side ,we are using the following:-
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
on the Applet Side also,
i have done this where con is URLConnection
Object
con.setUseCaches(false);
con.setRequestProperty("Content-type", "text/plain");
con.setRequestProperty("Content-length", data.length()+"");
con.setRequestProperty("Cache-Control", "no-cache");
con.setRequestProperty("Pragma", "no-cache");
But still caching is happening! anything
else that i have do...
Thanks and Regards
vinaya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic