Wunderfitz / harbour-piepmatz

Piepmatz is a Twitter client for Sailfish OS
GNU General Public License v3.0
51 stars 17 forks source link

Caching for profile images (if possible) #94

Open andywuest opened 4 years ago

andywuest commented 4 years ago

Hi,

caching for profile images would be nice (if possible) - since i only follow a few people, but the images disappear from time to time and need to be downloaded which is just a waste of bandwidth (i have one 100MB free before going to isdn speed). I hope that twitter has some etag for or caching information in place.

thanks

Wunderfitz commented 4 years ago

Hi @andywuest,

Piepmatz uses the standard QML means to load and display images by using the Qt Quick Image component. According to its documentation, they are automatically cached, see https://doc.qt.io/archives/qt-5.6/qml-qtquick-image.html#cache-prop. So at least as long Piepmatz runs, you should be fine with respect to reloads.

However, beyond that I have no plans of introducing a more sophisticated caching mechanism in Piepmatz. But I can leave it open as feature request in case somebody wants to pick it up.