How to cache okHTTP response from Web server?
问题 I want to know how can okHTTP response from Web server (which returns json data) be cached? I want my app to download all the data needed for RecycleView and cache it once the user runs the app first time - and avoid re-downloading and parsing all the same data from Web server, if data has not changed. I tried to get response headers, but this is what I get: Request URL: https://somedomain.com/wp-json/?categories=3&per_page=100&status=publish Request Method: GET Status Code: 200 OK Remote