From eb6cc9d781857a58bc60c661c51d06f3e5f837b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 20 Mar 2022 21:17:54 +0800 Subject: [PATCH] =?UTF-8?q?Age=E6=94=B9=E4=B8=BA=E5=9C=A8=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E4=B8=AD=E7=9A=84=E5=B7=B2=E5=AD=98=E6=B4=BB=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nodes/http_request_cache.go b/internal/nodes/http_request_cache.go index 9068a06..dfa909e 100644 --- a/internal/nodes/http_request_cache.go +++ b/internal/nodes/http_request_cache.go @@ -331,7 +331,7 @@ func (this *HTTPRequest) doCacheRead(useStale bool) (shouldStop bool) { } // 设置cache.age变量 - var age = strconv.FormatInt(reader.ExpiresAt()-utils.UnixTime(), 10) + var age = strconv.FormatInt(utils.UnixTime()-reader.LastModified(), 10) this.varMapping["cache.age"] = age if addStatusHeader {