No need to write your own cache implementation. You can change the com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders method (NetworkResponse answer), ignore these headers, set the entry.softTtl and entry.ttl fields for any value that works for you, and use your method in your query class .
My answer to a similar question has an example - Android Caching Volley + JSONObjectRequest
Oleksandr Yefremov May 31 '13 at 7:55 a.m. 2013-05-31 07:55
source share