This commit is contained in:
6543 2022-09-19 12:15:14 +02:00
parent 94cb43508c
commit af49f9a8f6
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
2 changed files with 8 additions and 7 deletions

View file

@ -97,7 +97,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str
log := log.With().Str("cache_key", cacheKey).Logger()
// handle if cache entry exist
if cache, ok := client.responseCache.Get(cacheKey); ok == true {
if cache, ok := client.responseCache.Get(cacheKey); ok {
cache := cache.(FileResponse)
// TODO: check against some timestamp missmatch?!?
if cache.Exists {