1
0
Fork 1
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-01-19 02:48:37 +00:00

Copy Last-Modified from upstream

This commit is contained in:
carbotaniuman 2020-06-07 10:14:14 -05:00
parent 902798d868
commit a92ee85dd7

View file

@ -107,7 +107,7 @@ fun getServer(cache: DiskLruCache, serverSettings: ServerSettings, clientSetting
val editor = cache.edit(cacheId)
val lastModified = HTTP_TIME_FORMATTER.format(ZonedDateTime.now(ZoneOffset.UTC))
val lastModified = mdResponse.header("Last-Modified")!!
// A null editor means that this file is being written to
// concurrently so we skip the cache process