I'm a bit surprised this doesn't exist already. I searched a bit and couldn't find an idea for it already, but there's so many that I may very well have missed it.
I know that there is an "Save offline" option already for playlists/albums/whatever, but it would be spectacular to be able to desginate either some data size, or number of songs/albums/time, and have the app auto-cache the most recently played music. I know I have a habit of listening to one album on loop for a while, and often won't think to mark it for offline play ahead of time. I KNOW this is a pretty common behavior. Having some kind of predictive or reactive auto-caching would not only reduce your server bandwidth, but also save us users our valuable, often very limited cell network data bandwidth for the month. It's a win-win. Help us help you!
A similar idea has also been suggested here:
https://community.spotify.com/t5/Spotify-Ideas/Auto-create-playlist-based-on-cached-songs/idi-p/816941
Add your kudos and comments there please! 😉
This isn't the same as the "duplicate" suggested. I'm saying the iOS App should auto-cache locally any songs that have recently been played, up to a specified storage space and/or song count. The link suggests just allowing a user to play what songs they already have marked and stored for offline play ahead of time. My idea is more like auto-offlining any recently played songs in expectation that a user often repeats listening to certain songs within a given span of time, so having to stream them from the Spotify servers over and over again is a waste of bandwidth for both parties involved.
Spotify does have a cache that it uses to do this.
If you are having streaming problems with recently played problems because they aren't caching enough to keep up with your internet speed, you can try increasing the cache size in Edit->Preferences->Cache->Use at most, or clear your current cache in-case other songs are using the cache space.