mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
close #96
This commit is contained in:
parent
b49bd86cdf
commit
edb592fbbb
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client,
|
|||
}
|
||||
log.Debug().Msg("response")
|
||||
|
||||
if res != nil && ctx.Err() == nil {
|
||||
if res != nil && res.Header.ContentLength() > fileCacheSizeLimit && ctx.Err() == nil {
|
||||
cachedResponse.Exists = true
|
||||
cachedResponse.MimeType = mimeType
|
||||
cachedResponse.Body = cacheBodyWriter.Bytes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue