I want to enable cache in my android app, so for this I asked my web team to do this https://stackoverflow.com/a/16809399/1741671
This is OK. I have one question that if cache control is allow and expire time is not expired and before that expire time if I hit same web service which I have already hit and cache is allow and expire time is also not expired then volley will hit a web server or it will send response from cache to onResponse
.
@Override
public void onResponse(String response) {
result=response;
System.out.println(response);
}