Android Exoplayer Caching Help

Job ID: 30952993

Budget: €250 – €750 EUR

I'm a developer for a podcast hosting platform. Currently i'm building an Android app that uses ExoPlayer to play files from the server.
The files are cached, the player checks where the file has already been cached or not, if so, play from cache, otherwise stream and cache in the background. It was all working just fine, untill i needed to add headers to my audio file requests.

Now i get source errors when trying to play from cache. I need help finding a sollution.
Related categories: Mobile App Development Android Kotlin