Open r0boto opened 8 years ago
No answers!! @r0boto did you find answer? please help
i have same issue too.... plz help us
Did you get an answer?
I solved this problem by this way:
RequestQueue queue = Volley.newRequestQueue(context);
queue.getCache().clear();
StringRequest myReq = new StringRequest(Request.Method.POST,
VolleyConnector.url,
createMyReqSuccessListener(),
createMyReqErrorListener()) {
protected Map<String, String> getParams() throws com.android.volley.AuthFailureError {
Map<String, String> params = new HashMap<String, String>();
params.put("Cn","1");
params.put("Yr","1396");
params.put("MaxInPage","10");
params.put("Method","Control_Vaziat_View");
params.put("Pg","1");
return params;
};
};
myReq.setShouldCache(false);
queue.add(myReq);
hope this code will help you, but am not sure
RequestQueue queue = new RequestQueue(new NoCache(), new BasicNetwork(new HurlStack()));
Hello, I'm using volley library:
compile 'com.mcxiaoke.volley:library:1.0.19' In http helper class i have the following method.
When i using the option:
To force disabling cache.
But when i get the response from server from the POSTMAN (Chrome extension for API testing) i got different values in response than on the Android device.
I tried also use the:
But with the same results.
How can i force disable the cache from response?
Many thanks for any advice.
Related to:
http://stackoverflow.com/questions/34792156/android-volley-1-0-18-how-to-disable-request-cache