Adds a cache forever tag to robohashes
This commit is contained in:
@@ -95,6 +95,7 @@ object Robohash {
|
|||||||
.Builder(context)
|
.Builder(context)
|
||||||
.data("robohash:$message")
|
.data("robohash:$message")
|
||||||
.fetcherFactory(HashImageFetcher.Factory)
|
.fetcherFactory(HashImageFetcher.Factory)
|
||||||
|
.addHeader("Cache-Control", "max-age=31536000")
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user