How can i disable http caching of all my http connections in my japplet? I dont want any of my http (request/response)to be cached.Regardless of the user settings in control panel\java\Temporary File Settings. Applet is signed and compiled with java1.6.
I am using URLConnection.class and my request to an 3rd party web service is being cached.
ie:
I can see my request url in Java Cache Viewer.
http://www.service.com?param1=232¶m2=2323232
Also i can find the responses in application ....users\data\sun\java\deployment\cache
responseline1
responseline2
3322 次
2 に答える
3
URLConnection.setUseCaches(boolean)を使用してキャッシュを無効にすることができます
于 2011-07-19T13:53:29.780 に答える
0
キャッシングを解除する簡単な方法は、URL ala にランダムな値を追加することです:
String url = "http://www.example.com/?noCache=" + Math.Random();
于 2011-07-19T13:34:24.583 に答える