After reading several documentations, i want to clear some points
Reference: this
For Picasso to cache my image into memory, do i have to enable "Cache-control" header in my response?
If i am using
OkHttpDownloader
with Picasso,will it still require me to enable the header?public Picasso getImageLoader(Context ctx) { Picasso.Builder builder = new Picasso.Builder(ctx); builder.downloader(new OkHttpDownloader(ctx) { @Override protected HttpURLConnection openConnection(Uri uri) throws IOException { HttpURLConnection connection = super.openConnection(uri); connection.setRequestProperty("X-User",user.getUsername()); connection.setRequestProperty("X-Token",user.getToken()); return connection; } }); return builder.build(); }
3 Does disk caching work in Picasso on Android 4.3 or lower. Will it load my image from disk if the net is disconnected?