Can I temporarily store artist images from Last.fm in my Spotify app?

Hey everyone! I’m working on a Spotify app and I was wondering if it’s okay to save artist images from Last.fm temporarily on my local storage. Does anyone know if this is allowed or if there are any rules against it? I’m not sure about the legal stuff here, so any advice would be super helpful. Also, if it is possible, are there any best practices for doing this? I want to make sure I’m not breaking any terms of service or anything like that. Thanks in advance for your help!

As someone who’s worked on music-related apps before, I can share some insights on this. Technically, you can cache images from Last.fm temporarily for performance reasons, but there are important considerations. First, make sure you’re adhering to Last.fm’s API terms of service. They usually allow caching for a limited time, but you should check the specifics in their documentation. From my experience, it’s best to implement a time-based cache expiration system. This ensures you’re not storing images indefinitely and respects potential changes or updates on Last.fm’s end. Also, be mindful of user privacy and data usage. Implement options for users to clear the cache or opt out of image caching altogether. Lastly, always attribute the images to Last.fm in your app. This is not only a legal requirement but also good practice in the dev community.