From a92ee85dd7a2e3f5b117f9c877bdbcf7a12cb68f Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Sun, 7 Jun 2020 10:14:14 -0500 Subject: [PATCH] Copy Last-Modified from upstream --- src/main/kotlin/mdnet/base/Application.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/mdnet/base/Application.kt b/src/main/kotlin/mdnet/base/Application.kt index c640599..1fd7f2e 100644 --- a/src/main/kotlin/mdnet/base/Application.kt +++ b/src/main/kotlin/mdnet/base/Application.kt @@ -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