Jump to content

Image caching guidelines


Luke

Recommended Posts

I've made a slight adjustment:

 

https://github.com/MediaBrowser/MediaBrowser/wiki/Images

 

When using image tags, instead of caching based on the entire url, if possible, just cache on everything that comes after the hostname and port:

 

For example:

 

/mediabrowser/images/{Id}/xxxxx

 

This will allow the same cache to be utilized whether connected internally (lan/wifi) or remotely (mobile). 

 

I realize not all clients can do this. For example, the web client has no control over this, but for those that can, I would suggest doing this.

Link to comment
Share on other sites

Redshirt

I had done that originally with the Android client. However switching to the Volley networking library changed all that. I need to override its default caching logic

Edited by Redshirt
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...