From 290b23355adc2d9d5d9538a74dda4dd6bddf68b8 Mon Sep 17 00:00:00 2001 From: HolgerHuo Date: Wed, 22 Nov 2023 05:30:14 -0800 Subject: [PATCH] fix: incorrect cache key (#286) --- helper/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/metadata.go b/helper/metadata.go index c197443f3..47a3f6d15 100644 --- a/helper/metadata.go +++ b/helper/metadata.go @@ -56,7 +56,7 @@ func WriteMetadata(p, etag string, subdir string) config.MetaFile { Id: id, } - if config.ProxyMode { + if etag != "" { data.Path = p data.Checksum = HashString(etag) } else {