explain why we cache symlinc and not content

This commit is contained in:
6543 2022-11-12 00:54:02 +01:00
parent c6326c88af
commit eeaff6de2c
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -137,6 +137,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str
}
linkDest := strings.TrimSpace(string(linkDestBytes))
// we store symlink not content to reduce duplicates in cache
if err := client.responseCache.Set(cacheKey, FileResponse{
Exists: true,
IsSymlink: true,