• Post Reply Bookmark Topic Watch Topic
  • New Topic

File Caching in Applet  RSS feed

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="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
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!