fix: incorrect cache key (#286)

This commit is contained in:
HolgerHuo 2023-11-22 05:30:14 -08:00 committed by GitHub
parent d7d4c37e44
commit 290b23355a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {