-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds thumbnail images for image files #11
Conversation
It works well! Great job! My only complaint is that it's a little inefficient in that it loads the pictures once. As the preview advances, the whole picture is loaded and displayed in the thumbnail. Then when the user clicks on a picture, it loads the picture again. This is not a big problem locally in a LAN, but it matters over cell data. There are two things that could help with this:
Looking a bit more on our server (a beefed up version of this server), I believe it respects If-None-Match/ETag headers, but not If-Modified-Since. We probably should implement those, however! Would you research this a bit more to see if there is some setting that could affect the app to take advantage of If-None-Match/Etag? |
I digged deeper into the docs of picasso and found that whenever we create a new instance of picasso, it creates following:
Also in this stackoverflow answer by Jake Wharton (the developer of picasso) , he says that the So in short Moreover if required we can customize the size of the memory cache using Picasso.Builder(). Also we can provide a custom method to check Etag or If-Modified-Since headers by making a new HttpOkClient and providing it to picasso as in this answer. So finally what should I do? |
I have to whip up a local server to test Etag. I am fairly sure we tested that feature in the server. |
Similar to the issue #18 picasso loads outdated image from the cache without actually fetching from the server in one of the use case. |
As discussed with @cpg, a simple solution would be to add |
We did found one path where the If-None-Match/Etag was not generated properly in the back-end and we fixed it, and released it. |
Please do add the change for cache-busting with mtime (all in small caps, if possible), and the removal of the okhttp caching. |
fb65276
to
358e4ea
Compare
@cpg done |
This pr aims to implement feature #2191. Check the screenshot below: