DWorkS / VolleyPlus

🏐 Volley library : make everything faster . Its an improvements for Volley by Google for Android https://android.googlesource.com/platform/frameworks/volley
https://github.com/DWorkS/VolleyPlus
984 stars 274 forks source link

Not able to remove cahed responses. #65

Closed karthikvdhanya closed 7 years ago

karthikvdhanya commented 7 years ago

My application doesnot require casched respose. Since i need to fetch data freequently, and data in the server varies constatnly . But through this library , I am always getting chached response .

I have tried

getRequestQueue().getCache().flush(); getRequestQueue().getCache().clear(); getRequestQueue().getCache().close(); getRequestQueue().getCache().remove(req.getCacheKey()); getRequestQueue().getCache().invalidate(req.getCacheKey(),true);

All these, still I am getting only cached response

1hakr commented 7 years ago

Did you get it working ? if not then this is the right way request.setShouldCache(true);