isResourceCacheable

abstract fun isResourceCacheable(    isFromAlternateCacheKey: Boolean,     dataSource: DataSource,     encodeStrategy: EncodeStrategy): Boolean

Returns true if this request should cache the final transformed resource.

Parameters

isFromAlternateCacheKey

true if the resource we've decoded was loaded using an alternative, rather than the primary, cache key.

dataSource

Indicates where the data used to decode the resource was originally retrieved.

encodeStrategy

The EncodeStrategy the will use to encode the resource.