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